/* ===== Custom Login Page (wp-login.php) ===== */

body.login {
    background-color: #f9f9f9 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Logo */
.login h1 a {
    background-size: contain !important;
    width: 200px !important;
    height: 80px !important;
}

/* Login form container */
#loginform,
#lostpasswordform,
#resetpassform {
    background: #fff;
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 28px 24px !important;
}

/* Labels */
#loginform label,
#lostpasswordform label,
#resetpassform label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Input fields */
#loginform input[type="text"],
#loginform input[type="password"],
#lostpasswordform input[type="text"],
#resetpassform input[type="password"] {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
    width: 100%;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#lostpasswordform input[type="text"]:focus,
#resetpassform input[type="password"]:focus {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 1px #2271b1 !important;
    outline: none;
}

/* Submit button */
.wp-core-ui .button-primary {
    background: #2271b1 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: background 0.2s ease;
    height: auto !important;
    line-height: 1.5 !important;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    background: #135e96 !important;
}

/* Remember me checkbox */
.forgetmenot {
    font-size: 13px;
}

/* Navigation links (Lost password, Back to site) */
#nav,
#backtoblog {
    text-align: center;
    padding: 0 24px;
}

#nav a,
#backtoblog a {
    color: #2271b1 !important;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

#nav a:hover,
#backtoblog a:hover {
    color: #135e96 !important;
    text-decoration: underline;
}

/* Messages (e.g. "Check your email") */
.login .message,
.login .success {
    border-left: 4px solid #2271b1 !important;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    font-size: 13px;
}

/* Error messages */
.login #login_error {
    border-left: 4px solid #d63638 !important;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    font-size: 13px;
}

/* Privacy policy link */
.login .privacy-policy-page-link {
    text-align: center;
}

.login .privacy-policy-page-link a {
    color: #888;
    font-size: 12px;
}

/* Language switcher */
.language-switcher {
    text-align: center;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .login {
        padding: 20px 16px !important;
    }

    #login {
        width: 100% !important;
        padding: 0 !important;
    }
}


/* ===== Custom Login Lookup Page (/login) ===== */

body.sm-login-lookup {
    background-color: #f9f9f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.sm-login-wrap {
    width: 100%;
    max-width: 380px;
    padding: 20px;
}

/* Logo */
.sm-login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.sm-login-logo a {
    display: inline-block;
}

.sm-login-logo img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 8px;
    object-fit: contain;
}

/* Login box */
.sm-login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
}

.sm-login-box h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
    text-align: center;
}

.sm-login-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    text-align: center;
}

/* Field */
.sm-login-field {
    margin-bottom: 20px;
}

.sm-login-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.sm-login-field input[type="text"],
.sm-login-field input[type="email"] {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    outline: none;
}

.sm-login-field input[type="text"]:focus,
.sm-login-field input[type="email"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Forgot username link */
.sm-forgot-username-link {
    text-align: center;
    margin-top: 16px;
}

.sm-forgot-username-link a {
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.sm-forgot-username-link a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Forgot username section */
.sm-login-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.sm-forgot-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
    text-align: center;
}

/* Success message */
.sm-login-success {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #166534;
    margin-bottom: 16px;
}

/* Forgot submit button */
#sm-forgot-submit {
    width: 100%;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1.5;
}

#sm-forgot-submit:hover {
    background: #135e96;
}

#sm-forgot-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error message */
.sm-login-error {
    background: #fef2f2;
    border-left: 4px solid #d63638;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #9b1c1c;
    margin-bottom: 16px;
}

/* Submit button */
#sm-login-submit {
    width: 100%;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1.5;
}

#sm-login-submit:hover {
    background: #135e96;
}

#sm-login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer link */
.sm-login-footer {
    text-align: center;
    margin-top: 20px;
}

.sm-login-footer a {
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.sm-login-footer a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .sm-login-wrap {
        padding: 16px;
    }

    .sm-login-box {
        padding: 24px 20px;
    }
}
