/* ==========================================================================
   Eltee Solutions - Modern Enterprise Helpdesk Login System
   ========================================================================== */

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

:root {
    --brand-primary: #f59e0b;
    --brand-primary-hover: #d97706;
    --brand-accent: #3b82f6;
    --brand-accent-glow: rgba(59, 130, 246, 0.35);
    --bg-dark-base: #090d16;
    --bg-dark-surface: rgba(17, 24, 39, 0.82);
    --bg-dark-card: rgba(22, 30, 49, 0.72);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-glass-focus: rgba(245, 158, 11, 0.55);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --danger-accent: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --danger-border: rgba(239, 68, 68, 0.3);
    --success-accent: #10b981;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.35) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.18) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.95) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(13, 20, 36, 0.8) 0px, transparent 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
    position: relative;
}

/* Ambient glow orbs */
.ambient-glow-1 {
    position: fixed;
    top: -10vw;
    left: -10vw;
    width: 35vw;
    height: 35vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-2 {
    position: fixed;
    bottom: -10vw;
    right: -10vw;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Main Container Layout */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Left Brand Showcase Column */
.brand-hero {
    padding: 2rem 2.5rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo-card {
    background: #ffffff;
    padding: 18px 30px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25);
    margin-bottom: 1.25rem;
    max-width: 440px;
    width: 100%;
    transition: var(--transition-smooth);
}

.brand-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px -6px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 158, 11, 0.3);
}

.brand-logo-large {
    width: 100%;
    max-width: 360px;
    height: auto;
    max-height: 85px;
    object-fit: contain;
    display: block;
}

.portal-title-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.portal-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 1.1rem;
    border-radius: 50px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

/* Helpdesk Showcase Card */
.helpdesk-showcase-container {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.helpdesk-showcase-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.75), 0 0 35px rgba(59, 130, 246, 0.18);
    transition: var(--transition-smooth);
}

.helpdesk-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px -8px rgba(0, 0, 0, 0.85), 0 0 45px rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.45);
}

.helpdesk-showcase-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Floating Badges on Showcase Image */
.showcase-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.showcase-badge.top-right {
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fde68a;
}

.showcase-badge.bottom-left {
    bottom: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

/* Secondary image / feature pill strip */
.helpdesk-gallery-strip {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.15rem;
    align-items: center;
}

.gallery-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.95rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    font-size: 0.82rem;
    color: #cbd5e1;
    transition: var(--transition-smooth);
}

.gallery-pill:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(245, 158, 11, 0.35);
    color: #ffffff;
}

.gallery-pill i {
    color: #fbbf24;
    font-size: 0.95rem;
}

.system-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    font-size: 0.82rem;
    font-weight: 500;
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-accent);
    box-shadow: 0 0 8px #10b981;
    animation: pulseStatus 2.2s infinite;
}

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

/* Right Column - Modern Auth Glass Card */
.auth-card-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-dark-surface);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.25rem 2.25rem 2rem 2.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #3b82f6, #f59e0b);
    background-size: 200% 100%;
    animation: gradientBorder 6s ease infinite;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-icon-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem auto;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fbbf24;
    box-shadow: 0 8px 16px -4px rgba(245, 158, 11, 0.2);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.auth-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Custom Styled Input Groups */
.form-group-custom {
    margin-bottom: 1.25rem;
    position: relative;
}

.field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-lead-icon {
    position: absolute;
    left: 14px;
    color: var(--text-subtle);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 2;
}

.custom-input {
    width: 100%;
    padding: 0.72rem 2.8rem 0.72rem 2.65rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.custom-input::placeholder {
    color: #64748b;
    font-size: 0.88rem;
}

.custom-input:focus {
    outline: none;
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--border-glass-focus);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
    color: #ffffff;
}

.custom-input:focus ~ .input-lead-icon,
.custom-input:not(:placeholder-shown) ~ .input-lead-icon {
    color: #fbbf24;
}

.input-action-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 8px;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
    z-index: 2;
}

.input-action-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}

/* CapsLock Indicator */
.capslock-alert {
    display: none;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    margin-top: 0.4rem;
}

/* Captcha Module Box */
.captcha-container {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.35rem;
}

.captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.captcha-header-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.captcha-interactive-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.captcha-input-col {
    flex: 1;
}

.captcha-input-col .custom-input {
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    letter-spacing: 0.18em;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: none;
}

.captcha-image-col {
    flex: 1.1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-img {
    width: 100%;
    height: 42px;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.captcha-actions-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.captcha-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.captcha-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    transform: scale(1.06);
}

.captcha-btn.rotating i {
    animation: spinRefresh 0.6s linear infinite;
}

@keyframes spinRefresh {
    100% { transform: rotate(360deg); }
}

/* Primary Action Button */
.submit-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0b0f19;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 10px 22px -5px rgba(245, 158, 11, 0.45);
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.6);
    color: #000000;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Error Messages */
.field-error {
    font-size: 0.78rem;
    color: #f87171;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.error-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: #fca5a5;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    animation: fadeInSlide 0.3s ease;
}

.error-banner i {
    color: #ef4444;
    font-size: 1.05rem;
    margin-top: 0.1rem;
}

.success-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
    animation: fadeInSlide 0.3s ease;
}

.success-banner i {
    color: #10b981;
    font-size: 1.08rem;
    margin-top: 0.12rem;
    flex-shrink: 0;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Links & Actions */
.card-nav-links {
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.link-subtle {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.link-subtle:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.back-website-link {
    color: var(--text-subtle);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.back-website-link:hover {
    color: #cbd5e1;
}

/* Page Footer */
.portal-footer {
    padding: 1.25rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 13, 22, 0.6);
    backdrop-filter: blur(12px);
    font-size: 0.8rem;
    color: var(--text-subtle);
    position: relative;
    z-index: 1;
}

.portal-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.portal-footer a:hover {
    color: #fbbf24;
}

/* Modal Custom Styling */
.modal-backdrop.show {
    opacity: 0.75;
    backdrop-filter: blur(10px);
}

.modal-content.custom-glass-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.modal-content.custom-glass-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
}

.modal-content.custom-glass-modal .modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    font-size: 1.2rem;
}

.modal-content.custom-glass-modal .modal-body {
    padding: 1.5rem;
}

.modal-content.custom-glass-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition-smooth);
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .brand-hero {
        padding: 1rem 0 2.5rem 0;
        text-align: center;
        align-items: center;
    }

    .brand-title {
        font-size: 2.1rem;
    }

    .brand-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-list {
        display: none;
    }

    .auth-card {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 1.5rem 0.75rem;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .captcha-interactive-row {
        flex-direction: column;
        gap: 0.6rem;
    }

    .captcha-image-col, .captcha-input-col {
        width: 100%;
    }

    .captcha-actions-col {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
}