/* Lexus Login Page - v1.rdp.cheap card style */

/* Remove focus outline on all interactive elements in login card */
.lexus-login-form-wrap input:focus,
.lexus-login-form-wrap button:focus,
.lexus-login-form-wrap a:focus,
.lexus-login-form-wrap select:focus,
.lexus-login-form-wrap textarea:focus {
    outline: none;
    outline-offset: 0;
}

/* Center the login/register form in the content area */
.primary-content:has(.lexus-login-form-wrap) {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Login/register form wrapper */
.lexus-login-form-wrap {
    width: 100%;
    max-width: 28rem;
    margin: 2rem auto;
}

/* Panel visibility (login vs register) */
.lexus-panel-hidden {
    display: none !important;
}

/* Card - glass style (uses theme tokens from header.css) */
.lexus-login-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(var(--lexus-primary-rgb), 0.07);
    border-radius: var(--lexus-radius-card);
    overflow: hidden;
    transition: all 0.3s ease;
}
html.lexus-theme-dark .lexus-login-card {
    background: var(--lexus-bg-dark);
    border: 1px solid var(--lexus-border-dark-2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.lexus-login-card-body {
    padding: 2rem 1.5rem;
}
@media (min-width: 576px) {
    .lexus-login-card-body {
        padding: 2.5rem 2rem;
    }
}

/* Header - Login / Sign up switch */
.lexus-login-header {
    margin-bottom: 1.5rem;
}
.lexus-login-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--lexus-text-dark);
    margin-bottom: 0.25rem;
}
.lexus-login-subtext {
    font-size: 0.875rem;
    color: var(--lexus-text-muted);
    margin-bottom: 1rem;
}
html.lexus-theme-dark .lexus-login-title { color: var(--lexus-dark-text-heading); }
html.lexus-theme-dark .lexus-login-subtext { color: var(--lexus-dark-text-muted); }
.lexus-login-switch {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--lexus-border-2);
    border-radius: var(--lexus-radius-full);
    box-shadow: var(--lexus-shadow-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
}
html.lexus-theme-dark .lexus-login-switch {
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--lexus-border-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.lexus-login-switch-item {
    padding: 0.5rem 1.25rem;
    border-radius: var(--lexus-radius-full);
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: var(--lexus-text-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.lexus-login-switch-item:hover {
    color: var(--lexus-primary);
    background: rgba(var(--lexus-primary-rgb), 0.08);
    text-decoration: none;
}
html.lexus-theme-dark .lexus-login-switch-item { color: var(--lexus-dark-text-muted); }
html.lexus-theme-dark .lexus-login-switch-item:hover {
    color: var(--lexus-primary);
    background: rgba(var(--lexus-primary-rgb), 0.15);
}
.lexus-login-switch-item.is-active {
    background: var(--lexus-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--lexus-shadow-btn);
}
.lexus-login-switch-item.is-active:hover {
    color: #fff;
    background: var(--lexus-primary-hover);
    box-shadow: 0 4px 14px rgba(var(--lexus-primary-rgb), 0.4);
}
html.lexus-theme-dark .lexus-login-switch-item.is-active {
    background: var(--lexus-primary);
    color: #fff;
}
html.lexus-theme-dark .lexus-login-switch-item.is-active:hover {
    background: var(--lexus-primary-hover);
    color: #fff;
}

/* Flash message - same style as inputs/card: border, colors, roundness, shadows, font */
.lexus-login-card-body .alert {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    color: #1e293b;
    line-height: 1.5;
}
.lexus-login-card-body .alert-danger {
    background: rgba(254, 226, 226, 0.6);
    color: #b91c1c;
}
.lexus-login-card-body .alert-success {
    background: rgba(220, 252, 231, 0.6);
    color: #15803d;
}
.lexus-login-card-body .alert-warning {
    background: rgba(254, 249, 195, 0.6);
    color: #a16207;
}
.lexus-login-card-body .alert-info {
    background: rgba(239, 246, 255, 0.8);
    color: #1d4ed8;
}
html.lexus-theme-dark .lexus-login-card-body .alert {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
}
html.lexus-theme-dark .lexus-login-card-body .alert-danger {
    background: rgba(127, 29, 29, 0.35);
    color: #fca5a5;
}
html.lexus-theme-dark .lexus-login-card-body .alert-success {
    background: rgba(20, 83, 45, 0.35);
    color: #86efac;
}
html.lexus-theme-dark .lexus-login-card-body .alert-warning {
    background: rgba(113, 63, 18, 0.35);
    color: #fde047;
}
html.lexus-theme-dark .lexus-login-card-body .alert-info {
    background: rgba(30, 41, 59, 0.85);
    color: #93c5fd;
}

/* Fields */
.lexus-login-field {
    margin-bottom: 1.25rem;
}
.lexus-login-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}
html.lexus-theme-dark .lexus-login-label {
    color: #cbd5e1;
}
.lexus-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}
.lexus-login-label-row .lexus-login-label {
    margin-bottom: 0;
}
.lexus-login-forgot {
    font-size: 0.8125rem;
    color: var(--lexus-primary);
    text-decoration: none;
}
.lexus-login-forgot:hover {
    color: var(--lexus-primary-hover);
    text-decoration: none;
}

/* Password input with reveal button - uses .form-control from custom.css */
.lexus-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lexus-login-input-wrap .form-control {
    padding-right: 2.75rem;
}
.lexus-login-reveal {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 9999px;
    transition: color 0.2s, background 0.2s;
}
.lexus-login-reveal:hover {
    color: #0d6cf2;
    background: rgba(13, 108, 242, 0.08);
}
html.lexus-theme-dark .lexus-login-reveal {
    color: #94a3b8;
}
html.lexus-theme-dark .lexus-login-reveal:hover {
    color: #0d6cf2;
    background: rgba(13, 108, 242, 0.15);
}

/* Register – small terms disclaimer at bottom of card */
.lexus-register-panel .lexus-register-tos {
    margin: 1rem 0 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #64748b;
}
.lexus-register-panel .lexus-register-tos a {
    color: #0d6cf2;
    text-decoration: none;
}
.lexus-register-panel .lexus-register-tos a:hover {
    color: #2563eb;
    text-decoration: none;
}
html.lexus-theme-dark .lexus-register-panel .lexus-register-tos {
    color: #94a3b8;
}
html.lexus-theme-dark .lexus-register-panel .lexus-register-tos a {
    color: #0d6cf2;
}
html.lexus-theme-dark .lexus-register-panel .lexus-register-tos a:hover {
    color: #60a5fa;
}

/* Buttons use .lexus-btn and .lexus-btn-secondary from header.css */
.lexus-login-btn-group {
    display: grid;
    gap: 0.75rem;
}

/* Divider - "Or Sign In using" with lines */
.lexus-login-divider-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem 1rem;
}
@media (min-width: 576px) {
    .lexus-login-divider-wrap {
        padding: 0 2rem 1.25rem;
    }
}
.lexus-login-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}
html.lexus-theme-dark .lexus-login-divider-line {
    background: rgba(255, 255, 255, 0.1);
}
.lexus-login-divider-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}
html.lexus-theme-dark .lexus-login-divider-text {
    color: #94a3b8;
}

/* Social buttons wrap */
.lexus-login-social-wrap {
    padding: 0 1.5rem 1.5rem;
}
@media (min-width: 576px) {
    .lexus-login-social-wrap {
        padding: 0 2rem 2rem;
    }
}
.lexus-login-social-wrap .providerPreLinking {
    margin: 0;
}
.lexus-login-social-wrap .social-signin-btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}
.lexus-login-social-wrap .social-signin-btns .btn,
.lexus-login-social-wrap .social-signin-btns a {
    flex: 1;
    min-width: 0;
    max-width: 12rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}
/* Google (1st) and Apple (2nd) icons - SVG, same line */
.lexus-login-social-wrap .social-signin-btns a:nth-child(1)::before,
.lexus-login-social-wrap .social-signin-btns .btn:nth-child(1)::before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background: url("../images/google.svg") no-repeat center;
    background-size: contain;
}
.lexus-login-social-wrap .social-signin-btns a:nth-child(2)::before,
.lexus-login-social-wrap .social-signin-btns .btn:nth-child(2)::before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background: url("../images/apple.svg") no-repeat center;
    background-size: contain;
}
/* Placeholder social buttons when no providers enabled - same look, disabled */
.lexus-login-social-wrap .social-signin-btns .lexus-social-btn-placeholder {
    flex: 1;
    min-width: 0;
    max-width: 12rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    color: #374151;
    opacity: 0.6;
    cursor: default;
}
.lexus-login-social-wrap .social-signin-btns .lexus-social-btn-placeholder:nth-child(1)::before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background: url("../images/google.svg") no-repeat center;
    background-size: contain;
}
.lexus-login-social-wrap .social-signin-btns .lexus-social-btn-placeholder:nth-child(2)::before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background: url("../images/apple.svg") no-repeat center;
    background-size: contain;
}
html.lexus-theme-dark .lexus-login-social-wrap .social-signin-btns .lexus-social-btn-placeholder {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
.lexus-login-social-wrap .social-signin-btns .btn:hover,
.lexus-login-social-wrap .social-signin-btns a:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
html.lexus-theme-dark .lexus-login-social-wrap .social-signin-btns .btn,
html.lexus-theme-dark .lexus-login-social-wrap .social-signin-btns a {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
}
html.lexus-theme-dark .lexus-login-social-wrap .social-signin-btns .btn:hover,
html.lexus-theme-dark .lexus-login-social-wrap .social-signin-btns a:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
/* Apple icon white in dark mode */
html.lexus-theme-dark .lexus-login-social-wrap .social-signin-btns a:nth-child(2)::before,
html.lexus-theme-dark .lexus-login-social-wrap .social-signin-btns .btn:nth-child(2)::before,
html.lexus-theme-dark .lexus-login-social-wrap .social-signin-btns .lexus-social-btn-placeholder:nth-child(2)::before {
    filter: brightness(0) invert(1);
}

/* Card footer */
.lexus-login-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}
@media (min-width: 576px) {
    .lexus-login-footer {
        padding: 1rem 2rem 1.5rem;
    }
}
html.lexus-theme-dark .lexus-login-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}
.lexus-login-footer small {
    font-size: 0.875rem;
    color: var(--lexus-text-muted);
}
html.lexus-theme-dark .lexus-login-footer small { color: var(--lexus-dark-text-muted); }
.lexus-login-register {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lexus-primary);
    text-decoration: none;
    margin-left: 0.25rem;
}
.lexus-login-register:hover {
    color: var(--lexus-primary-hover);
    text-decoration: none;
}

/* Captcha inside login/register card */
.lexus-login-card-body .recaptcha-container,
.lexus-login-card-body #google-recaptcha-domainchecker,
.lexus-login-panel .recaptcha-container,
.lexus-login-panel #google-recaptcha-domainchecker,
.lexus-register-panel .recaptcha-container,
.lexus-register-panel #google-recaptcha-domainchecker,
.lexus-register-panel #default-captcha-domainchecker {
    margin-bottom: 1rem;
}
/* Default captcha styling for register form */
.lexus-register-panel #default-captcha-domainchecker {
    text-align: center;
}
.lexus-register-panel #default-captcha-domainchecker p {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}
html.lexus-theme-dark .lexus-register-panel #default-captcha-domainchecker p {
    color: #94a3b8;
}
.lexus-register-panel #default-captcha-domainchecker input {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
html.lexus-theme-dark .lexus-register-panel #default-captcha-domainchecker input {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
