/* =============================================================================
   AWD USER PORTAL — Login Page Styles
   Targets wp-login.php exclusively via login_enqueue_scripts hook.
   Dark editorial aesthetic — charcoal base, coral accent, bold typography.
============================================================================= */

/* --- Google Font import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Page reset & full-bleed dark background --- */
html,
body.login {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #1a1a1a;
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

/* --- Login wrapper width --- */
#login {
    padding-top: 10vh;
    width: 420px !important;
    max-width: 90vw;
}

/* Push message/error notices down so they don't hug the top */
.login #login_error,
.login .message,
.login .success {
    margin-top: 16px !important;
}

/* --- Language selector spacing --- */
.login #language-switcher {
    margin-top: 24px !important;
}

.login #language-switcher-locales {
    margin-bottom: 10px !important;
}

/* Narrow the Change button */
.login #language-switcher .button {
    width: auto !important;
    min-width: 100px !important;
    padding: 8px 24px !important;
    border-radius: 100px !important;
    background: #2a2a2a !important;
    border: 1.5px solid rgba( 255, 255, 255, 0.12 ) !important;
    color: rgba( 255, 255, 255, 0.5 ) !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, color 0.2s ease !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: none !important;
}
body.login::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient( ellipse 80% 60% at 10% 90%, rgba( 230, 92, 81, 0.12 ) 0%, transparent 60% ),
        radial-gradient( ellipse 60% 80% at 90% 10%, rgba( 38, 38, 38, 0.8 ) 0%, transparent 70% );
    pointer-events: none;
    z-index: 0;
}

/* Large decorative typographic watermark */
body.login::after {
    content: 'AWD';
    position: fixed;
    bottom: -60px;
    right: -20px;
    font-family: 'Playfair Display', serif;
    font-size: clamp( 180px, 22vw, 320px );
    font-weight: 700;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px rgba( 230, 92, 81, 0.08 );
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* --- Logo area --- */
#login h1 a,
.login h1 a {
    background-image: url('https://portal.austinwebanddesign.com/wp-content/uploads/2025/09/austin-web-design-website-logo@480px-light-1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 160px;
    height: 60px;
    display: block;
    margin: 0 auto 8px;
    text-indent: -9999px;
}

/* Tagline beneath logo */
#login h1::after {
    content: 'Client Portal';
    display: block;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba( 230, 92, 81, 0.8 );
    margin-top: 6px;
}

/* --- Login form card --- */
#login,
.login #loginform,
.login #lostpasswordform,
.login #registerform {
    position: relative;
    z-index: 1;
}

#loginform,
#lostpasswordform,
#registerform {
    background: #222222 !important;
    border: 1px solid rgba( 230, 92, 81, 0.2 ) !important;
    border-radius: 16px !important;
    padding: 36px 40px 32px !important;
    box-shadow:
        0 0 0 1px rgba( 255, 255, 255, 0.03 ),
        0 24px 60px rgba( 0, 0, 0, 0.5 ) !important;
    animation: loginFadeUp 0.4s ease both;
}

@keyframes loginFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Labels --- */
.login label {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: rgba( 255, 255, 255, 0.45 ) !important;
    margin-bottom: 6px !important;
    display: block;
}

/* --- Inputs --- */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #2a2a2a !important;
    border: 1.5px solid rgba( 255, 255, 255, 0.08 ) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #e65c51 !important;
    box-shadow: 0 0 0 3px rgba( 230, 92, 81, 0.15 ) !important;
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder {
    color: rgba( 255, 255, 255, 0.2 ) !important;
}

/* --- Submit button --- */
.login input[type="submit"],
.login .button-primary {
    background: #e65c51 !important;
    border: none !important;
    border-radius: 100px !important;
    color: #ffffff !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease, transform 0.15s ease !important;
    box-shadow: 0 4px 20px rgba( 230, 92, 81, 0.35 ) !important;
    height: auto !important;
    line-height: 1 !important;
    margin-top: 20px !important;
}

.login input[type="submit"]:hover,
.login .button-primary:hover {
    opacity: 0.88 !important;
    transform: scale( 0.98 ) !important;
}

/* --- Remember me checkbox --- */
.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login .forgetmenot label {
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
    color: rgba( 255, 255, 255, 0.35 ) !important;
    text-transform: none !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.login input[type="checkbox"] {
    accent-color: #e65c51;
    width: 14px;
    height: 14px;
}

/* --- Links (lost password, back to blog) --- */
.login #nav a,
.login #backtoblog a {
    color: rgba( 255, 255, 255, 0.35 ) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #e65c51 !important;
}

.login #nav,
.login #backtoblog {
    text-align: center;
    padding: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- Error / message notices --- */
.login #login_error,
.login .message,
.login .success {
    background: transparent !important;
    border-left: 3px solid #e65c51 !important;
    border-radius: 0 8px 8px 0 !important;
    color: rgba( 255, 255, 255, 0.7 ) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
    margin-top: 16px !important;
    box-shadow: none !important;
}

/* --- Privacy policy link --- */
.login .privacy-policy-page-link {
    display: none;
}

/* --- Responsive --- */
@media ( max-width: 400px ) {
    #loginform,
    #lostpasswordform {
        padding: 28px 24px 24px !important;
        border-radius: 12px !important;
    }

    body.login::after {
        display: none;
    }
}