body {
    background-color: #f6f7fb;
}

.auth-page {
    background: #f3f5fa;
}

.auth-hero {
    position: relative;
    background: linear-gradient(135deg, #0b1f4a 0%, #173b7a 45%, #2a5fb6 100%);
    background-size: 160% 160%;
    color: #fff;
    overflow: hidden;
    animation: authGradientShift 14s ease-in-out infinite;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -25% -15%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(8, 19, 42, 0.25), rgba(8, 19, 42, 0.6));
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    transition: transform 240ms ease;
    animation: authFadeUp 700ms ease both;
}

.auth-fx-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(1px);
    pointer-events: none;
}

.auth-fx-dot-1 {
    width: 120px;
    height: 120px;
    top: 14%;
    right: 18%;
    animation: authFloat 8s ease-in-out infinite;
}

.auth-fx-dot-2 {
    width: 70px;
    height: 70px;
    bottom: 22%;
    right: 34%;
    animation: authFloat 6.5s ease-in-out infinite reverse;
}

.auth-fx-dot-3 {
    width: 38px;
    height: 38px;
    top: 36%;
    left: 14%;
    animation: authFloat 5.5s ease-in-out infinite;
}

.auth-brand-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.auth-brand-subtitle {
    opacity: 0.85;
    font-size: 0.9rem;
}

.auth-hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-hero-text {
    font-size: 1.05rem;
    opacity: 0.95;
    max-width: 520px;
}

.auth-logo-large {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.auth-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.18);
}

.auth-panel {
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(15, 28, 63, 0.14);
    padding: 2rem;
    opacity: 0;
    transform: translateY(14px) scale(0.99);
}

.auth-panel-ready {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 360ms ease, transform 420ms ease;
}

.auth-input-group .input-group-text {
    background: #f8fafc;
    border-right: 0;
    color: #4b5f84;
    transition: color 200ms ease, background-color 200ms ease;
}

.auth-input-group .form-control {
    border-left: 0;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.auth-input-group .form-control:focus {
    box-shadow: none;
}

.auth-input-group:has(.form-control:focus) {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    border-radius: 0.5rem;
}

.auth-input-group:has(.form-control:focus) .input-group-text {
    color: #0d6efd;
    background: #eef4ff;
}

.auth-login-btn {
    padding: 0.7rem 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.auth-demo-box {
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}

.auth-login-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    transform: skewX(-24deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.auth-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
}

.auth-login-btn:hover::after {
    left: 140%;
    transition: left 560ms ease;
}

.auth-mobile-brand {
    text-align: center;
}

.auth-logo-mobile {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.public-ticket-modal-content {
    border: 0 !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34) !important;
    background: #fff;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.public-ticket-modal-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.public-ticket-modal-header {
    background: linear-gradient(135deg, #0b1f4a 0%, #2a5fb6 100%);
    color: #fff;
    border-bottom: 0 !important;
    padding: 1.1rem 1.35rem;
}

.public-ticket-modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.public-ticket-modal-body {
    background: linear-gradient(180deg, #f8fbff 0%, #f4f7fc 100%);
    overflow-y: auto;
    flex: 1 1 auto;
}

.public-ticket-wizard {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.public-ticket-wizard-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #475569;
    background: #e2e8f0;
    border-radius: 999px;
    padding: 4px 10px;
}

.public-ticket-wizard-item span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
}

.public-ticket-wizard-item.active {
    color: #0b3a8a;
    background: #dbeafe;
}

.public-ticket-wizard-item.active span {
    background: #2563eb;
    color: #fff;
}

.public-ticket-wizard-sep {
    color: #64748b;
    font-size: 0.85rem;
}

.public-ticket-intro {
    background: #eef5ff;
    border: 1px solid #cfe0ff;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #1e3a8a;
}

.public-ticket-section {
    border: 1px solid #d9e3f3;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.public-ticket-section-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-ticket-step {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.8rem;
}

.public-ticket-field {
    border-radius: 10px !important;
    border-color: #d4deec !important;
    min-height: 42px;
}

.public-ticket-field:focus {
    border-color: #6ea8fe !important;
    box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.14) !important;
}

.public-ticket-modal-footer {
    border-top: 1px solid #dde5f2;
    background: #f1f5fb;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .public-ticket-modal-content {
        border-radius: 14px !important;
        max-height: calc(100vh - 1rem);
    }

    .public-ticket-modal-header {
        padding: 0.95rem 1rem;
    }

    .public-ticket-modal-body {
        padding: 0.9rem;
    }

    .public-ticket-section {
        padding: 0.85rem;
    }
}

@media (max-width: 767px) {
    .public-ticket-modal-content {
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.24) !important;
    }

    .public-ticket-modal-header .modal-title {
        font-size: 1rem;
    }

    .public-ticket-modal-header .small {
        font-size: 0.75rem;
    }

    .public-ticket-section-title {
        font-size: 0.88rem;
    }

    .public-ticket-step {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .public-ticket-field {
        min-height: 40px;
    }

    .public-ticket-modal-footer {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .public-ticket-modal-footer .btn {
        width: 100%;
    }
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.content-wrapper {
    min-height: 100vh;
}

.timeline {
    border-left: 2px solid #dee2e6;
    margin-left: 8px;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.timeline-item::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
    position: absolute;
    left: -26px;
    top: 6px;
}

@media (max-width: 991px) {
    .auth-panel {
        padding: 1.5rem;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(15, 28, 63, 0.12);
    }

    .sidebar {
        width: 82px;
    }

    .sidebar .nav-link {
        font-size: 0;
    }

    .sidebar .nav-link i {
        font-size: 1.1rem;
    }
}

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

@keyframes authFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(6px); }
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-hero,
    .auth-fx-dot-1,
    .auth-fx-dot-2,
    .auth-fx-dot-3 {
        animation: none !important;
    }

    .auth-panel,
    .auth-panel-ready,
    .auth-hero-content {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
