/**
 * RowHome Magazine - Custom Login Page Styles
 *
 * Branded login experience matching site identity:
 * Colors: Black #000, Red #FF0000, Background #000000
 * Fonts: Instrument Serif (display), Montserrat (UI)
 */

/* ── Base Layout ── */
body.login {
    background-color: #000000;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* ── Logo ── */
#login h1 a {
    background-image: url('../images/rowhome-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 280px;
    height: 80px;
    margin: 0 auto 10px;
    display: block;
    text-indent: -9999px;
    outline: none;
}

/* ── Branding Tagline ── */
.rowhome-login-branding {
    text-align: center;
    margin-bottom: 8px;
}

.rowhome-login-tagline {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    color: #ccc;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

/* ── Login Card ── */
#loginform,
#registerform,
#lostpasswordform {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    padding: 28px 32px;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

#login {
    width: 100%;
    max-width: 380px;
    padding: 0;
    text-align: center;
}

/* ── Form Labels ── */
#loginform label,
#registerform label,
#lostpasswordform label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* ── Input Fields ── */
#loginform input[type="text"],
#loginform input[type="password"],
#registerform input[type="text"],
#registerform input[type="email"],
#lostpasswordform input[type="text"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
    color: #333;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#registerform input[type="text"]:focus,
#registerform input[type="email"]:focus,
#lostpasswordform input[type="text"]:focus {
    border-color: #FF0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
    outline: none;
    background: #fff;
}

/* ── Remember Me ── */
.login .forgetmenot label {
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    color: #666;
}

/* ── Submit Button ── */
#wp-submit,
.login .button-primary {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #000000;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    padding: 12px 24px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-shadow: none;
    box-shadow: none;
    height: auto;
    line-height: 1.4;
}

#wp-submit:hover,
.login .button-primary:hover {
    background: #FF0000;
    color: #ffffff;
}

#wp-submit:active,
.login .button-primary:active {
    transform: scale(0.98);
}

#wp-submit:focus,
.login .button-primary:focus {
    background: #FF0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.3);
    outline: none;
}

/* ── Login Actions Row ── */
.login #login_error,
.login .message,
.login .success {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    border-radius: 6px;
    max-width: 380px;
    margin: 0 auto 16px;
    box-sizing: border-box;
    text-align: left;
}

.login .message {
    border-left-color: #000;
}

.login #login_error {
    border-left-color: #FF0000;
}

.login .success {
    border-left-color: #34A853;
}

/* ── Navigation Links ── */
#login #nav,
#login #backtoblog {
    text-align: center;
    margin: 16px auto 0;
    padding: 0;
}

#login #nav a,
#login #backtoblog a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

#login #nav a:hover,
#login #backtoblog a:hover {
    color: #FF0000;
}

/* ── Google OAuth Button ── */
.rowhome-social-login {
    text-align: center;
    margin-bottom: 4px;
}

.rowhome-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 380px;
    padding: 11px 20px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.rowhome-google-btn:hover {
    border-color: #999;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    color: #333;
}

.rowhome-google-icon {
    flex-shrink: 0;
}

/* ── Divider ── */
.rowhome-login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 4px;
    gap: 12px;
}

.rowhome-login-divider::before,
.rowhome-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d0d0d0;
}

.rowhome-login-divider span {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ── Hide WP spacers that push footer down ── */
body.login .clear {
    display: none;
}

/* ── Footer ── */
.rowhome-login-footer {
    text-align: center;
    margin-top: 24px;
    padding: 0;
    width: 100%;
    max-width: 380px;
}

.rowhome-subscribe-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #aaa;
    margin: 0 0 8px;
}

.rowhome-subscribe-cta a {
    color: #FF0000;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rowhome-subscribe-cta a:hover {
    color: #cc0000;
    text-decoration: underline;
}

.rowhome-login-copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #777;
    margin: 0;
}

/* ── Language Switcher (hide default) ── */
.language-switcher {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    #login h1 a {
        width: 220px;
        height: 60px;
    }

    #login {
        padding: 0 16px;
    }

    #loginform,
    #registerform,
    #lostpasswordform {
        padding: 24px 20px;
    }

    .rowhome-login-tagline {
        font-size: 13px;
    }

    #wp-submit {
        padding: 10px 20px;
    }
}

@media (max-width: 320px) {
    #login h1 a {
        width: 180px;
        height: 50px;
    }
}

/* ── Interim state: hide WP privacy link ── */
.login .privacy-policy-page-link {
    display: none;
}
