/* ==========================================================================
   Dealer Verification Hub - Premium Login Stylesheet
   Palette: #010101 (Obsidian Dark) & #d15b0a (Warm Industrial Copper/Amber)
   Context: Automotive Key Duplication & CNC Hardware Verification Hub
   ========================================================================== */

:root {
    --brand-black: #010101;
    --brand-dark-1: #0a0a0d;
    --brand-dark-2: #121216;
    --brand-dark-3: #1a1a20;
    --brand-dark-glass: rgba(12, 12, 15, 0.82);
    --brand-orange: #d15b0a;
    --brand-orange-light: #e66a15;
    --brand-orange-bright: #ff7d26;
    --brand-orange-glow: rgba(209, 91, 10, 0.35);
    --brand-orange-subtle: rgba(209, 91, 10, 0.15);
    --brand-border: rgba(255, 255, 255, 0.09);
    --brand-border-focus: #d15b0a;
    --brand-text-primary: #ffffff;
    --brand-text-secondary: #9da4b0;
    --brand-text-muted: #6f7785;
}

/* Page Root & Background */
.premium-login-root {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background:
        /* Center dark vignette to ensure crisp readability for the login card */
        radial-gradient(ellipse at 50% 50%, rgba(1, 1, 1, 0.70) 0%, rgba(1, 1, 1, 0.35) 65%, transparent 100%),
        /* Warm industrial copper/amber ambient highlights */
        radial-gradient(ellipse at 88% 18%, rgba(209, 91, 10, 0.22) 0%, transparent 45%),
        radial-gradient(ellipse at 12% 82%, rgba(209, 91, 10, 0.16) 0%, transparent 40%),
        /* Balanced translucent overlay so the Xhorse key cutting machine is clearly visible */
        linear-gradient(135deg, rgba(1, 1, 1, 0.50) 0%, rgba(10, 10, 14, 0.38) 50%, rgba(1, 1, 1, 0.58) 100%),
        url('../../../media/bg/dealer_key_machinery_bg.jpg?v=2') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Ambient Subtle Circuit/Grid Overlay */
.premium-login-root::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Top Floating Brand Status Bar */
.login-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    z-index: 10;
    pointer-events: none;
}

.login-top-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 1, 1, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    text-transform: uppercase;
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseStatus 2s infinite ease-in-out;
}

@keyframes pulseStatus {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.login-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-orange-bright);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(209, 91, 10, 0.12);
    border: 1px solid rgba(209, 91, 10, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

/* Central Login Card Container */
.login-card-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 460px;
    margin: auto;
    animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glassmorphism Premium Card */
.premium-login-card {
    position: relative;
    background: var(--brand-dark-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    padding: 38px 34px 32px 34px;
    box-shadow:
        0 25px 60px -15px rgba(0, 0, 0, 0.85),
        0 0 40px -5px rgba(209, 91, 10, 0.22);
    overflow: hidden;
}

/* Top Glowing Laser Edge Highlight */
.premium-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(209, 91, 10, 0.4) 15%, #ff7d26 50%, rgba(209, 91, 10, 0.4) 85%, transparent 100%);
    box-shadow: 0 0 12px rgba(255, 125, 38, 0.8);
}

/* Logo Presentation */
.login-logo-holder {
    text-align: center;
    margin-bottom: 22px;
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 10px 26px;
    border-radius: 14px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(209, 91, 10, 0.25);
    border: 1.5px solid rgba(209, 91, 10, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-brand-badge:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.6),
        0 0 22px rgba(209, 91, 10, 0.4);
}

.login-brand-logo {
    max-width: 190px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Header Text */
.login-header-group {
    text-align: center;
    margin-bottom: 26px;
}

.auth-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(209, 91, 10, 0.12);
    border: 1px solid rgba(209, 91, 10, 0.3);
    color: var(--brand-orange-bright);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.auth-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-orange-bright);
    box-shadow: 0 0 8px var(--brand-orange-bright);
}

.login-hub-title {
    color: var(--brand-text-primary);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.login-hub-desc {
    color: var(--brand-text-secondary);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.45;
}

/* Form Groups & Inputs */
.form-field-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.form-field-label i {
    color: var(--brand-orange);
    font-size: 12px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.input-icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-orange);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease, transform 0.2s ease;
}

.form-control-hub {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding-left: 48px !important;
    padding-right: 48px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-shadow: none !important;
}

.form-control-hub::placeholder {
    color: rgba(255, 255, 255, 0.38) !important;
    font-size: 13.5px;
    font-weight: 400;
}

.form-control-hub:hover {
    border-color: rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

.form-control-hub:focus {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 3px rgba(209, 91, 10, 0.25) !important;
    color: #ffffff !important;
}

.form-input-wrapper:focus-within .input-icon-left {
    color: var(--brand-orange-bright);
    transform: translateY(-50%) scale(1.1);
}

/* Password Toggle Button */
.btn-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--brand-text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 6px 8px;
    z-index: 3;
    transition: color 0.2s ease;
    outline: none;
}

.btn-password-toggle:hover {
    color: var(--brand-orange-bright);
}

/* Validation Errors Below Input Field */
.help-block,
span.help-block,
.form-field-group .help-block,
.form-input-wrapper + .help-block,
.form-input-wrapper .help-block {
    display: block !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    order: 10 !important;
    margin-top: 6px !important;
    margin-bottom: 2px !important;
    padding-left: 4px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #ff5252 !important;
    text-align: left !important;
    line-height: 1.35 !important;
}

.form-control-hub.has-error,
.form-control-hub.error {
    border-color: #ff5252 !important;
    background: rgba(255, 82, 82, 0.06) !important;
    box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.22) !important;
}

/* Submit Action Button */
.btn-hub-signin {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #d15b0a 0%, #b34a04 100%) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(209, 91, 10, 0.4) !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.btn-hub-signin::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: rotate(30deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.btn-hub-signin:hover {
    background: linear-gradient(135deg, #e66a15 0%, #d15b0a 100%) !important;
    box-shadow: 0 12px 30px rgba(209, 91, 10, 0.55) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-hub-signin:hover::after {
    left: 120%;
}

.btn-hub-signin:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(209, 91, 10, 0.4) !important;
}

.btn-hub-signin i {
    transition: transform 0.25s ease;
}

.btn-hub-signin:hover i {
    transform: translateX(3px);
}

/* Feature/Trust Badges within Card */
.trust-badges-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-text-secondary);
    font-size: 11px;
    font-weight: 500;
}

.trust-item i {
    color: var(--brand-orange);
    font-size: 11px;
}

/* Card Bottom Footer Note */
.card-security-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: var(--brand-text-muted);
}

.card-security-footer i {
    color: #10b981;
    margin-right: 4px;
}

/* Page Copyright Footer */
.login-page-footer {
    position: relative;
    z-index: 5;
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 400;
}

.login-page-footer a {
    color: var(--brand-orange-bright);
    text-decoration: none;
    font-weight: 600;
}

.login-page-footer a:hover {
    text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 575.98px) {
    .premium-login-root {
        padding: 20px 14px;
    }
    .premium-login-card {
        padding: 28px 20px 24px 20px;
        border-radius: 16px;
    }
    .login-top-bar {
        position: static;
        padding: 0 0 16px 0;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .login-hub-title {
        font-size: 19px;
    }
    .trust-badges-row {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
}

