/**
 * PlayGuitar — Custom Login Page
 *
 * Dark guitar background, branded logo, welcoming greeting.
 * Overrides default WordPress login styles.
 */

/* ─── Page Background ─── */

html, body.login {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.login {
    background: #0a0a0a !important;
    background-image: var(--pg-login-bg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Dark overlay */
body.login::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    z-index: 0;
}

/* Push everything above the overlay */
body.login #login,
body.login > * {
    position: relative;
    z-index: 1;
}

/* ─── Logo ─── */

#login h1,
.login h1 {
    margin: 0 0 4px;
    padding: 0;
}

.login h1 a,
#login h1 a {
    background-image: url('../images/logo-dark.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 240px !important;
    height: 56px !important;
    margin: 0 auto 12px !important;
    padding: 0 !important;
}

/* ─── Welcome Greeting ─── */

.pg-login-greeting {
    text-align: center;
    margin: 0 0 24px;
    padding: 0 20px;
}

.pg-login-greeting__line1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 6px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: none !important;
}

.pg-login-greeting__line2 {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65) !important;
    margin: 0;
    line-height: 1.4;
    text-transform: none !important;
}

/* ─── Login Card ─── */

#login {
    width: 400px !important;
    padding: 0 20px;
    box-sizing: border-box;
}

body.login #loginform,
body.login form {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 28px 28px 20px !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5) !important;
    margin-top: 0 !important;
}

/* ─── Form Labels ─── */

body.login #loginform label,
body.login #loginform .user-pass-wrap label,
body.login form label[for] {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* ─── Form Inputs ─── */

body.login #loginform .input,
body.login #loginform input[type="text"],
body.login #loginform input[type="password"],
body.login #loginform input[type="email"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    padding: 10px 14px !important;
    transition: border-color 0.2s, background 0.2s;
    box-shadow: none !important;
    margin-top: 4px;
}

body.login #loginform .input:focus,
body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus,
body.login #loginform input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 0 0 2px rgba(232, 168, 56, 0.2) !important;
    outline: none !important;
    color: #fff !important;
}

/* Autofill override — keep dark theme */
body.login #loginform input:-webkit-autofill,
body.login #loginform input:-webkit-autofill:hover,
body.login #loginform input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(20, 20, 30, 0.95) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* ─── Remember Me ─── */

body.login .forgetmenot label,
body.login #loginform .forgetmenot label {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

body.login #loginform input[type="checkbox"] {
    accent-color: #e8a838;
}

/* ─── Submit Button ─── */

body.login #loginform #wp-submit,
body.login #loginform .button-primary {
    background: #e8a838 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #1a1a2e !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
    margin-top: 4px;
    text-transform: none !important;
    line-height: 1.5;
    height: auto !important;
}

body.login #loginform #wp-submit:hover,
body.login #loginform .button-primary:hover {
    background: #f0b84d !important;
    transform: translateY(-1px);
    color: #1a1a2e !important;
    border: none !important;
}

body.login #loginform #wp-submit:active,
body.login #loginform .button-primary:active {
    transform: translateY(0);
}

body.login #loginform #wp-submit:focus {
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.3) !important;
}

/* ─── Password Visibility Toggle ─── */

body.login .wp-hide-pw {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.4);
}

body.login .wp-hide-pw .dashicons {
    color: rgba(255, 255, 255, 0.4) !important;
}

body.login .wp-hide-pw:hover .dashicons,
body.login .wp-hide-pw:focus .dashicons {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ─── One-Time Login Link (WishList Member) ─── */

body.login #loginform #wishlist-member-otl a,
body.login #loginform a[href*="wishlistmember-otl"] {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

body.login #loginform #wishlist-member-otl a:hover,
body.login #loginform a[href*="wishlistmember-otl"]:hover {
    color: #e8a838 !important;
}

/* ─── Footer Links ─── */

#login #nav,
#login #backtoblog {
    text-align: center;
    padding: 0;
}

#login #nav a,
#login #backtoblog a {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 13px;
    transition: color 0.2s;
    text-decoration: none;
}

#login #nav a:hover,
#login #backtoblog a:hover {
    color: #e8a838 !important;
    text-decoration: none;
}

/* Separator pipe between nav links */
#login #nav {
    color: rgba(255, 255, 255, 0.25);
}

/* ─── Error / Info Messages ─── */

body.login #login_error,
body.login .login .message,
body.login .login .success {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-left: 4px solid #e8a838 !important;
    box-shadow: none !important;
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 14px;
}

body.login #login_error {
    border-left-color: #e74c3c !important;
}

body.login #login_error a {
    color: #e8a838 !important;
}

body.login .login .message a {
    color: #e8a838 !important;
}

/* ─── Lost Password Form ─── */

.login-action-lostpassword .pg-login-greeting {
    display: none;
}

/* ─── Caps Lock Warning ─── */

body.login .caps-warning {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.login .caps-warning svg {
    fill: rgba(255, 255, 255, 0.6);
    stroke: rgba(255, 255, 255, 0.6);
}

/* ─── Mobile ─── */

@media (max-width: 600px) {
    #login {
        width: 100% !important;
        max-width: 400px !important;
    }

    .pg-login-greeting__line1 {
        font-size: 22px;
    }

    .pg-login-greeting__line2 {
        font-size: 15px;
    }

    body.login #loginform,
    body.login form {
        padding: 24px 20px 18px !important;
        border-radius: 12px !important;
    }
}
