/* ==============================================
   HỆ THỐNG XÁC THỰC - LỮ ĐOÀN 6
   Phong cách: Quân sự số hóa hiện đại
   Inspiration: Chính phủ điện tử / VNeID
   ============================================== */

/* ----- IMPORT GOOGLE FONTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ----- CSS RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ----- NỀN QUÂN ĐỘI GRADIENT ----- */
.military-bg {
    background: linear-gradient(180deg, #1e4d2b 0%, #14532d 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    z-index: -1;
}

/* ----- HIỆU ỨNG NỀN LÍNH ----- */
.military-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ----- NỀN XÁM PHÍA DƯỚI ----- */
.bg-gray-body {
    background-color: #f3f4f6;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    z-index: -2;
}

/* ----- CONTAINER CHÍNH ----- */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ----- THẺ TRẮNG NỔI ----- */
.auth-card {
    background: white;
    border-radius: 1rem;
    /* rounded-2xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* shadow-xl */
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    position: relative;
    z-index: 10;
    animation: slideUp 0.5s ease-out;
}

/* ----- ANIMATION SLIDE UP ----- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ----- LOGO VÀ TIÊU ĐỀ ----- */
.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(185, 28, 28, 0.3);
}

.auth-logo-icon i {
    font-size: 2.5rem;
    color: #fbbf24;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #14532d;
    text-align: center;
    letter-spacing: 0.5px;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.25rem;
}

/* ----- FORM STYLES ----- */
.auth-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* ==============================================
   PREMIUM ANIMATIONS & EFFECTS
   ============================================== */

/* 1. HIỆU ỨNG HIỆN RA KHI CUỘN (SCROLL REVEAL) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* 2. HIỆU ỨNG CHỜ (SHIMMER SKELETON) */
.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right,
            #f6f7f8 0%,
            #edeef1 20%,
            #f6f7f8 40%,
            #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: inline-block;
    position: relative;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

/* 3. HIỆU ỨNG NHẤP NHÁY LOGO (PULSE) */
.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

/* 4. MICRO-INTERACTIONS */
.tap-scale {
    transition: transform 0.1s ease;
}

.tap-scale:active {
    transform: scale(0.95);
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* 5. SMOOTH TAB INDICATOR (FOR NEWSPAPER) */
.tab-indicator {
    height: 3px;
    background: #1e4d2b;
    border-radius: 99px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}