/* --- General Page Styling --- */
body.login {
    background-color: #121212; /* Dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* --- Hide Default WordPress Elements --- */
.login #backtoblog,
.login h1 {
    display: none;
}

/* --- Hide Additional Elements --- */
.login .language-switcher,
.login #language-switcher,
.login .wp-lang-switcher,
.login #privacy-policy-page-link,
.login .privacy-policy-page-link,
.login .button.wp-hide-pw,
.login .dashicons.dashicons-visibility,
.login .dashicons.dashicons-hidden,
.login .forgetmenot,
.login .rememberme,
.login label,
.login .message,
.login #login_error {
    display: none !important;
}

/* --- Hide specific notice boxes but keep form elements --- */
.login .notice,
.login .notice-error,
.login .notice-info,
.login .notice-success,
.login .notice-warning {
    display: none !important;
}

/* --- Custom Top-Left Header --- */
.bs-login-header {
    position: absolute;
    top: 0;
    left: 0;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.bs-login-header img {
    height: 48px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
}
.bs-login-header span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

/* --- Central Login Card --- */
#login {
    width: 420px;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden; /* Ensures content respects rounded corners */
}

/* --- Welcome Text Styling --- */
.bs-welcome-text h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50 !important;
    margin: 0;
    line-height: 1.3;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.bs-welcome-text p {
    font-size: 15px;
    color: #7f8c8d;
    margin: 0;
}

/* --- Form & Input Fields --- */
#loginform {
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

/* --- Logo Above Input Fields --- */
.bs-card-logo {
    text-align: center;
    margin: 0 auto 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.bs-card-logo img {
    width: 70px;
    height: 70px;
    display: block;
    margin: 0 auto;
}

/* --- Welcome Text Positioned After Logo --- */
.bs-welcome-text {
    text-align: center;
    margin-bottom: 25px;
    display: block !important;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 999;
}
.login form{
    border:none;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    height: 50px;
    width: 100%;
    padding: 0 15px;
    font-size: 15px;
    color: #343a40;
    box-shadow: none;
    margin-bottom: 15px;
}

/* --- Placeholder Styling --- */
.login input::placeholder {
    color: #6c757d;
    opacity: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 15px;
}
.login form .input:focus {
    border-color: #8A2BE2; /* A shade of purple for focus */
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
    outline: none;
}

/* --- Submit Button Wrapper --- */
.login .submit {
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* --- Submit Button --- */
.login .button.button-primary {
    width: auto !important;
    min-width: 120px !important;
    height: 50px !important;
    border-radius: 25px !important; /* Pill shape */
    background: #8A2BE2 !important; /* BlueViolet color, a good solid alternative */
    border: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: none !important;
    transition: background-color 0.2s ease-in-out !important;
    margin: 10px 0 0 0 !important;
    display: inline-block !important;
    padding: 0 30px !important;
    text-align: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    float: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
}
.login .button.button-primary:hover {
    background: #7322bf !important;
}

/* --- Footer Links ("Lost your password?") --- */
.login #nav {
    text-align: center;
    margin-top: 20px;
    padding: 0;
}
.login #nav a {
    color: #7f8c8d;
}
.login #nav a:hover {
    color: #8A2BE2;
}

/* --- Message Boxes (e.g., errors, success) --- */
.login #login_error,
.login .message {
    border-radius: 12px;
    border-left-width: 4px;
    margin: 0 0 20px 0;
}
