/* Auth Module Styles */

.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

.auth-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #800000, #b21f1f, #ffffff, #ff4d4d, #ffffff, #e60000);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    z-index: -1;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.4);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: rgba(255, 80, 80, 0.3);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Auth Card - Glassmorphism */
.auth-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    color: white;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #fdbb2d, #b21f1f, #1a2a6c);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-logo {
    margin-bottom: 0.75rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    background: #ef4444;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
    overflow: hidden;
    padding: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.logo-icon i {
    font-size: 28px;
}

.system-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.15rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-logo p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-body {
    margin-bottom: 1rem;
}

.auth-body .form-group {
    margin-bottom: 0.85rem;
}

.auth-body .form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.95);
}

.auth-body .form-label svg {
    color: rgba(255, 255, 255, 0.7);
}

.auth-body .form-control {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: white;
}

.auth-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-body .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    outline: none;
}

.captcha-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.captcha-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #ffffff;
    user-select: none;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Form Check Row */
.form-check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.forgot-password-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background: #e60000;
    border-color: #ffffff;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

/* Submit Button */
.auth-body .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #e60000 0%, #800000 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.auth-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(178, 31, 31, 0.4);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Alert Styling for Auth Page */
.auth-body .alert {
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    animation: shakeIn 0.5s ease;
}

@keyframes shakeIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    50% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 2rem;
        max-width: 100%;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-icon svg {
        width: 40px;
        height: 40px;
    }
}