/* =========================================================
   SENSEBOARD LICENSING SYSTEM - CREATIVE THEMED LOGIN CSS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Dynamic Animated Ambient Background Orbs */
.auth-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0F172A !important;
    background-image:
        radial-gradient(at 0% 0%, rgba(132, 90, 223, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(35, 183, 229, 0.20) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.95) 0px, #0F172A 100%) !important;
    overflow: hidden;
    padding: 24px;
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(132, 90, 223, 0.3) 0%, rgba(132, 90, 223, 0) 70%);
    top: -120px;
    left: -120px;
    filter: blur(60px);
    animation: orbFloat1 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 183, 229, 0.25) 0%, rgba(35, 183, 229, 0) 70%);
    bottom: -150px;
    right: -150px;
    filter: blur(70px);
    animation: orbFloat2 16s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Glassmorphism Auth Card */
.auth-card {
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-radius: 20px !important;
    width: 100%;
    max-width: 450px;
    padding: 44px 40px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(132, 90, 223, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease !important;
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card:hover {
    border-color: rgba(132, 90, 223, 0.45) !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.65),
        0 0 45px rgba(132, 90, 223, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-4px);
}

/* Header & Dashboard Logo Replacement */
.auth-card>div:first-child {
    text-align: center !important;
    margin-bottom: 32px !important;
}

/* Target the placeholder "S" icon box and replace with Dashboard Logo */
.auth-card>div:first-child>div:first-child {
    width: 200px !important;
    height: 20px !important;
    background: url('../images/logo.png') center / contain no-repeat !important;
    font-size: 0 !important;
    color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
    margin-bottom: 12px !important;
    filter: drop-shadow(0 6px 16px rgba(132, 90, 223, 0.45)) !important;
    animation: logoGlow 4s ease-in-out infinite alternate;
}

/* Brand Title & Subtitle Styling */
.auth-card h2 {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 2.5px !important;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 60%, #845ADF 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin: 4px 0 0 0 !important;
    text-transform: uppercase;
}

.auth-card p {
    color: #94A3B8 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    margin-top: 0px !important;
    letter-spacing: 0.4px !important;
}

/* Form Group & Input Styling */
.auth-card .form-group {
    margin-bottom: 22px !important;
}

.auth-card .form-label {
    display: block !important;
    color: #CBD5E1 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    text-transform: uppercase;
}

.auth-card .form-control-custom {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 18px !important;
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: #F8FAFC !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.auth-card .form-control-custom::placeholder {
    color: #64748B !important;
    font-weight: 400 !important;
}

.auth-card .form-control-custom:focus {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #845ADF !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(132, 90, 223, 0.25), 0 0 20px rgba(132, 90, 223, 0.2) !important;
}

/* Eye Icon Password Toggle Button */
.auth-card button[onclick="togglePassword()"] {
    position: absolute !important;
    right: 14px !important;
    bottom: 14px !important;
    background: none !important;
    border: none !important;
    color: #94A3B8 !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.3s ease, transform 0.2s ease !important;
}

.auth-card button[onclick="togglePassword()"]:hover {
    color: #23B7E5 !important;
    transform: scale(1.12);
}

/* Submit Button */
.auth-card .btn-custom {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 50px !important;
    margin-top: 14px !important;
    background: linear-gradient(135deg, #845ADF 0%, #6366F1 50%, #23B7E5 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 8px 25px rgba(132, 90, 223, 0.4) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.auth-card .btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.auth-card .btn-custom:hover::before {
    left: 100%;
}

.auth-card .btn-custom:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(132, 90, 223, 0.55), 0 0 25px rgba(35, 183, 229, 0.35) !important;
}

.auth-card .btn-custom:active {
    transform: translateY(1px) scale(0.99) !important;
}

/* Alert Styling */
.auth-card .alert-custom {
    background: rgba(230, 83, 60, 0.12) !important;
    border: 1px solid rgba(230, 83, 60, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 24px !important;
    color: #FF8A7A !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 15px rgba(230, 83, 60, 0.15) !important;
    animation: alertShake 0.4s ease;
}

/* Footer Note */
.auth-card>div:last-child {
    text-align: center !important;
    margin-top: 32px !important;
    font-size: 0.78rem !important;
    color: #64748B !important;
    letter-spacing: 0.3px !important;
}

/* Animations */
@keyframes orbFloat1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, 30px) scale(1.08);
    }

    100% {
        transform: translate(-20px, 50px) scale(0.95);
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, -40px) scale(1.1);
    }

    100% {
        transform: translate(25px, -20px) scale(0.92);
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 4px 12px rgba(132, 90, 223, 0.35));
    }

    100% {
        filter: drop-shadow(0 8px 22px rgba(35, 183, 229, 0.5));
    }
}

@keyframes alertShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}