/* ===================================
   Global Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Tahoma', serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 50%, #e0f2fe 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

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

/* ===================================
   Decorative Background Elements
   =================================== */

.bg-decoration {
    position: fixed;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}

.bg-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.bg-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(50px, 10px) rotate(270deg); }
}

/* ===================================
   Layout Containers
   =================================== */

.main-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    position: relative;
    z-index: 5;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-right: 2px solid rgba(6, 182, 212, 0.2);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 20s ease-in-out infinite;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 25s ease-in-out infinite reverse;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.carousel-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    position: relative;
    overflow: hidden;
}

/* ===================================
   Auth Card Styles
   =================================== */

.auth-card {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 1;
}

.auth-card .card {
    border: none !important;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(30, 58, 138, 0.16);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(6, 182, 212, 0.16);
    position: relative;
    z-index: 10;
}

.auth-card .card:hover {
    box-shadow: 0 35px 120px rgba(6, 182, 212, 0.24);
    transform: translateY(-8px);
}

/* Enhanced Card Header */
.card-header-enhanced {
    position: relative;
    padding: 40px 25px 30px;
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.header-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-image {
    max-width: 110px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
    pointer-events: none;
}

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

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.header-title {
    color: white;
    font-weight: 900;
    margin: 0;
    font-size: 28px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 30px;
}

/* ===================================
   Tabs Styles
   =================================== */

.auth-toggle-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    animation: fadeInGroup 0.5s ease backwards;
}

.nav-tabs {
    border-bottom: 2px solid #e8dfd5;
    margin-bottom: 25px;
    gap: 0;
}

.nav-link {
    color: #666;
    border: none;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-link:hover::after {
    transform: scaleX(0.8);
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-bottom-color: transparent;
}

/* ===================================
   Form Controls Styles
   =================================== */

.form-group {
    margin-bottom: 18px;
    position: relative;
    animation: fadeInGroup 0.5s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

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

.form-label {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    font-size: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glowIcon 3s ease-in-out infinite;
}

@keyframes glowIcon {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(102, 126, 234, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.6));
    }
}

.form-control {
    border: 2px solid #e8dfd5 !important;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: #fafaf8;
    font-weight: 500;
    position: relative;
}

.form-control::placeholder {
    color: #999;
}

.form-control:hover {
    border-color: #667eea;
    background: white;
}

.form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.2) !important;
    background: white;
    transform: translateY(-2px);
    outline: none;
}

/* ===================================
   Input Group Styles
   =================================== */

.input-group {
    display: flex;
    gap: 0;
    background: #fafaf8;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e8dfd5;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.2);
}

.input-group .form-control {
    flex: 1;
    border: none !important;
    border-radius: 0;
    padding: 14px 16px;
    background: transparent;
    box-shadow: none !important;
}

.input-group .form-control:focus {
    box-shadow: none !important;
    border: none !important;
}

.btn-send {
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%) !important;
    border: none !important;
    color: white !important;
    padding: 0 20px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 0;
}

.btn-send:hover {
    filter: brightness(1.1);
    transform: none;
}

/* ===================================
   Password Input Wrapper Styles
   =================================== */

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

.password-input-wrapper .password-input {
    padding-left: 45px;
}

.password-toggle-btn {
    position: absolute;
    left: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1e3a8a;
    font-size: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #06b6d4;
    transform: scale(1.1);
}

.password-toggle-btn:active {
    transform: scale(0.95);
}

.password-toggle-btn i {
    font-size: 16px;
}

.btn-send:active {
    filter: brightness(0.95);
}

/* ===================================
   Button Styles
   =================================== */

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%) !important;
    border: none !important;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.28);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.35) !important;
    color: white;
}

.btn-primary:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary i {
    font-size: 16px;
}

/* Toggle Buttons */
.toggle-btn {
    flex: 1;
    border: 1px solid rgba(30, 58, 138, 0.12);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #4b5563;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.toggle-btn .btn-icon {
    font-size: 16px;
    color: #1e3a8a;
    transition: transform 0.3s ease, color 0.3s ease;
}

.toggle-btn .btn-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.24);
}

.toggle-btn.active .btn-icon {
    color: white;
}

.toggle-btn.active .btn-underline {
    transform: scaleX(1);
    transform-origin: left;
}

.toggle-btn:hover:not(.active) {
    background: rgba(6, 182, 212, 0.08);
    color: #1e3a8a;
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-1px);
}

.toggle-btn:hover:not(.active) .btn-icon {
    transform: scale(1.1);
    color: #06b6d4;
}

/* ===================================
   Checkbox Styles
   =================================== */

.form-check {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 12px;
    margin-bottom: 12px;
    animation: fadeInGroup 0.5s ease backwards;
}

.form-check:nth-child(5) { animation-delay: 0.5s; }

.form-check-input {
    width: 16px;
    height: 16px;
    border: 2px solid #e8dfd5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    accent-color: #27ae60;
    flex-shrink: 0;
    position: relative;
}

.form-check-input:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.form-check-label {
    cursor: pointer;
    color: #666;
    font-weight: 500;
    margin: 0 !important;
    padding: 0 !important;
}

.form-check-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.form-check-label a:hover {
    color: #764ba2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===================================
   Auth Forms Container
   =================================== */

.auth-forms-container {
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.auth-form {
    animation: fadeOutSlide 0.4s ease forwards;
    opacity: 0;
    display: none;
    pointer-events: none;
}

.auth-form.active {
    animation: fadeInSlide 0.4s ease forwards;
    opacity: 1;
    display: block;
    pointer-events: auto;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutSlide {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Password Requirements */
.password-requirements {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 13px;
    animation: fadeInGroup 0.5s ease backwards;
}

.requirement-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
}

.requirement-row:last-child {
    margin-bottom: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    margin: 6px 0;
    transition: all 0.3s ease;
    font-size: 12px;
}

.requirement-item i {
    font-size: 11px;
    color: #dc3545;
    transition: color 0.3s ease;
}

.requirement-item.satisfied {
    color: #28a745;
}

.requirement-item.satisfied i {
    color: #28a745;
}

/* ===================================
   Divider Styles
   =================================== */

.divider-text {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e8dfd5;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

/* ===================================
   Footer Styles
   =================================== */

.form-footer {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 18px;
}

.form-footer a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    color: #06b6d4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===================================
   Carousel Card Styles
   =================================== */

.carousel-card {
    width: 100%;
    height: 100%;
    max-width: 390px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.96) 100%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid rgba(37, 99, 235, 0.12);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(16px);
}

.carousel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(37, 99, 235, 0.04));
    pointer-events: none;
}

.carousel-card:hover {
    box-shadow: 0 32px 100px rgba(37, 99, 235, 0.18);
    transform: translateY(-6px);
}

.carousel-header {
    background: linear-gradient(135deg, #133a92 0%, #0ea5e9 100%);
    color: white;
    padding: 20px 22px;
    text-align: center;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.18);
}

.carousel-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.carousel-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.carousel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.carousel-header p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.carousel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px 14px 16px;
    gap: 12px;
    max-height: 100%;
}

/* ===================================
   Announcement Slide Styles
   =================================== */

.announcement-slide {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.announcement-slide:last-child {
    border-bottom: none;
}

.announcement-slide:nth-child(1) {
    animation-delay: 0s;
}

.announcement-slide:nth-child(2) {
    animation-delay: 0.15s;
}

.announcement-slide:nth-child(3) {
    animation-delay: 0.3s;
}

.announcement-slide.exit {
    animation: slideOutDown 0.4s ease forwards;
}

.announcement-slide:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(14, 165, 233, 0.05) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.announcement-slide::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2563eb 0%, #0ea5e9 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.announcement-slide:hover::after {
    transform: scaleY(1);
}

.announcement-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.08);
}

.announcement-title::before {
    content: '📦';
    font-size: 16px;
}

.announcement-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
    animation: fadeInGroup 0.5s ease backwards;
}

.info-item {
    font-size: 12px;
    padding: 8px 9px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.info-item:hover {
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

.info-label {
    font-weight: 700;
    color: #2563eb;
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-value {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.announcement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
    letter-spacing: 0.3px;
    animation: fadeInGroup 0.5s ease backwards 0.2s;
}

/* ===================================
   Animations
   =================================== */

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1200px) {
    .main-container {
        height: auto;
    }

    .auth-container,
    .carousel-container {
        padding: 30px;
    }

    .auth-card {
        max-width: 100%;
    }

    .carousel-card {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .auth-container,
    .carousel-container {
        flex: 0 1 auto;
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        min-height: auto;
    }

    .carousel-container {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .auth-container::before,
    .auth-container::after {
        display: none;
    }

    .card-header h5 {
        font-size: 22px;
    }

    .carousel-card {
        max-width: 100%;
        max-height: 400px;
    }

    .auth-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        height: auto;
        overflow: auto;
    }

    .main-container {
        flex-direction: column;
        height: auto;
    }

    .auth-container,
    .carousel-container {
        flex: none;
        padding: 20px;
        border-right: none;
        min-height: auto;
    }

    .carousel-container {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: 15px;
    }

    .carousel-card {
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    .carousel-header {
        padding: 15px;
        font-size: 16px;
    }

    .carousel-content {
        max-height: none;
        overflow: visible;
    }

    .announcement-slide {
        flex: 0 0 auto;
        padding: 18px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        min-height: auto;
    }

    .announcement-slide:last-child {
        border-bottom: none;
    }

    .announcement-slide:hover {
        padding-right: 18px;
    }

    .auth-card {
        max-width: 100%;
    }

    .auth-card .card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .card-header h5 {
        font-size: 20px;
    }

    .card-header {
        padding: 20px 15px;
    }

    .card-body {
        padding: 20px;
    }

    .nav-tabs {
        margin-bottom: 20px;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        font-size: 12px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }

    .input-group {
        flex-direction: row;
    }

    .btn-send {
        padding: 0 15px;
        font-size: 11px;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 13px;
    }

    .form-check {
        font-size: 11px;
        gap: 15px;
    }

    .announcement-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .announcement-info {
        margin-bottom: 8px;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .info-item {
        padding: 6px;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .info-item:hover {
        background: rgba(102, 126, 234, 0.08);
        transform: none;
    }

    .info-label {
        font-size: 10px;
        display: block;
        margin-bottom: 3px;
    }

    .info-value {
        font-size: 11px;
        font-weight: 600;
    }

    .announcement-badge {
        padding: 5px 12px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .main-container {
        flex-direction: column;
    }

    .auth-container,
    .carousel-container {
        padding: 15px;
    }

    .auth-card,
    .carousel-card {
        max-width: 100%;
    }

    .card-header h5 {
        font-size: 18px;
    }

    .card-header {
        padding: 15px 12px;
    }

    .card-body {
        padding: 15px;
    }

    .carousel-header {
        font-size: 16px;
        padding: 15px;
    }

    .nav-tabs {
        margin-bottom: 15px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-label {
        font-size: 11px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }

    .input-group {
        flex-direction: row;
    }

    .btn-send {
        padding: 0 12px;
        font-size: 10px;
        gap: 4px;
    }

    .btn-send i {
        font-size: 12px;
    }

    .btn-primary {
        padding: 10px 16px;
        font-size: 12px;
    }

    .form-check {
        font-size: 10px;
        gap: 12px;
    }

    .divider-text {
        font-size: 11px;
    }

    .form-footer {
        font-size: 11px;
    }

    .announcement-slide {
        padding: 15px;
    }

    .announcement-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .announcement-info {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 6px;
    }

    .info-item {
        padding: 5px;
    }

    .info-label {
        font-size: 9px;
    }

    .info-value {
        font-size: 10px;
    }

    .announcement-badge {
        padding: 4px 10px;
        font-size: 10px;
    }

    .carousel-card {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .auth-container,
    .carousel-container {
        padding: 12px;
    }

    .card-header h5 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .card-header {
        padding: 12px 10px;
    }

    .card-body {
        padding: 12px;
    }

    .carousel-header {
        font-size: 14px;
        padding: 12px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 11px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-control {
        padding: 9px 10px;
        font-size: 12px;
    }

    .input-group {
        gap: 0;
    }

    .btn-send {
        padding: 0 10px;
        font-size: 10px;
    }

    .btn-primary {
        padding: 9px 14px;
        font-size: 11px;
    }

    .announcement-slide {
        padding: 12px;
    }

    .announcement-title {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .announcement-info {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 4px;
    }

    .info-item {
        padding: 4px;
    }

    .info-label {
        font-size: 8px;
    }

    .info-value {
        font-size: 9px;
    }

    .announcement-badge {
        padding: 3px 8px;
        font-size: 9px;
    }
}

/* ===================================
   Enhanced Design Elements
   =================================== */

/* Form Group Enhancements */
.form-group {
    position: relative;
    animation: fadeInDown 0.6s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.form-label i {
    font-size: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

/* Card Enhancement */
.card-body {
    animation: scaleIn 0.5s ease backwards;
}

/* Button Enhancement */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.btn-primary i {
    font-size: 16px;
}

/* Tab Enhancement */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-link i {
    font-size: 16px;
}

/* Announcement Title Enhancement */
.announcement-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-title::before {
    content: '📦';
    font-size: 18px;
}

/* Info Item Enhancement */
.info-item {
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

/* Divider Enhancement */
.divider-text {
    font-weight: 700;
    letter-spacing: 1px;
}

.divider-text::before,
.divider-text::after {
    background: linear-gradient(90deg, transparent, #e8dfd5, transparent);
}

/* Form Footer Enhancement */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
}

/* Checkbox Enhancement */
.form-check {
    animation: fadeInDown 0.6s ease backwards;
}

.form-check:nth-child(5) { animation-delay: 0.5s; }

.form-check-input {
    position: relative;
}

.form-check-input::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.form-check-input:focus::after {
    opacity: 0.1;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .form-group {
        animation-delay: 0s !important;
    }
    
    .form-check {
        animation-delay: 0s !important;
    }
    
    .form-label {
        font-size: 13px;
    }
}

/* Loading Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(102, 126, 234, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.8));
    }
}

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus,
button:hover {
    transition: all 0.3s ease;
}

/* Icon Styling */
i[class*="fas"] {
    position: relative;
}

/* Text Shadow for Better Readability */
.card-header h5,
.carousel-header,
.announcement-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Better Spacing */
.form-group {
    margin-bottom: 20px;
}

.form-check {
    margin-bottom: 15px;
}

.nav-item {
    flex: 1;
}

/* Announcement Info Animation */
.announcement-info {
    animation: fadeInDown 0.5s ease backwards 0.1s;
}

.announcement-badge {
    animation: fadeInDown 0.5s ease backwards 0.2s;
}
/* ===================================
   Password Strength Indicator Styles
   =================================== */

/* Toggle Buttons for Auth Form Switch */
.auth-toggle-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
}

.toggle-btn {
    flex: 1;
    border: 1px solid rgba(30, 58, 138, 0.12);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #4b5563;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.24);
}

.toggle-btn:hover:not(.active) {
    background: rgba(6, 182, 212, 0.08);
    color: #1e3a8a;
    border-color: rgba(6, 182, 212, 0.3);
}

/* Forms Container */
.auth-forms-container {
    position: relative;
    height: auto;
    overflow: hidden;
}

.auth-form {
    animation: slideOut 0.4s ease forwards;
    opacity: 0;
    display: none;
}

.auth-form.active {
    animation: slideIn 0.4s ease forwards;
    opacity: 1;
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.password-requirements {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 13px;
}

.requirement-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
}

.requirement-row:last-child {
    margin-bottom: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.requirement-item i {
    font-size: 11px;
    color: #dc3545;
    transition: color 0.3s ease;
}

.requirement-item.satisfied {
    color: #28a745;
}

.requirement-item.satisfied i {
    color: #28a745;
}

/* Error and Success Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 15px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert i {
    margin-right: 8px;
}

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

/* Password Match Status */
#password-match-status {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 4px;
}

#password-match-status.text-success {
    color: #28a745 !important;
}

#password-match-status.text-danger {
    color: #dc3545 !important;
}

/* Mobile Check Status */
#register-mobile-status {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 500;
}

#register-mobile-status.text-danger {
    color: #dc3545 !important;
}

#register-mobile-status.text-success {
    color: #28a745 !important;
}

/* Form Control Focus Enhancement */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Button Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Button Styles Enhancement */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Form Input Animation */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100% !important;
}

.form-control:hover {
    border-color: #667eea;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .password-requirements {
        background: #2d3748;
        border-color: #4a5568;
        color: #cbd5e0;
    }
    
    .requirement-item {
        color: #cbd5e0;
    }
    
    .alert-danger {
        background-color: #742a2a;
        color: #fed7d7;
    }
    
    .alert-success {
        background-color: #22543d;
        color: #9ae6b4;
    }
}

/* ===================================
   Features Section Styles
   =================================== */

.features-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 243, 0.98) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%);
    animation: pulse 2s ease-in-out infinite;
}

.feature-icon i {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-icon-1 { background: linear-gradient(135deg, rgba(30, 58, 138, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%); }
.feature-icon-2 { background: linear-gradient(135deg, rgba(14, 116, 144, 0.12) 0%, rgba(30, 58, 138, 0.06) 100%); }
.feature-icon-3 { background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(30, 58, 138, 0.06) 100%); }
.feature-icon-4 { background: linear-gradient(135deg, rgba(30, 58, 138, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%); }
.feature-icon-5 { background: linear-gradient(135deg, rgba(14, 116, 144, 0.12) 0%, rgba(30, 58, 138, 0.06) 100%); }
.feature-icon-6 { background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(14, 116, 144, 0.06) 100%); }

.feature-card:hover .feature-icon::before {
    animation: pulse-strong 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulse-strong {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 15px 0 12px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #1e3a8a;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.feature-card:hover p {
    color: #333;
}

.feature-line {
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #1e3a8a, #06b6d4);
    margin-top: 20px;
    transition: width 0.4s ease;
}

.feature-card:hover .feature-line {
    width: 60px;
}

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

/* ===================================
   Statistics Section
   =================================== */

.stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.stats-section::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.stats-section::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-direction: reverse;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stats-header {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.stats-header h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stats-header p {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: slideInStats 0.6s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.stat-card:hover .stat-icon {
    animation: bounce-fast 0.6s ease-in-out;
}

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

@keyframes bounce-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin: 0;
}

@keyframes slideInStats {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================================
   How It Works Section
   =================================== */

.how-works-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 243, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.how-works-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.works-header {
    text-align: center;
    margin-bottom: 60px;
}

.works-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.works-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-top: 40px;
    position: relative;
}

.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .step-connector {
        display: block;
        position: absolute;
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
        top: 50px;
        z-index: 0;
    }

    .step-connector:nth-of-type(2) {
        left: 20%;
        right: 80%;
    }

    .step-connector:nth-of-type(4) {
        left: 45%;
        right: 55%;
    }

    .step-connector:nth-of-type(6) {
        left: 70%;
        right: 30%;
    }
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    border: 2px solid rgba(102, 126, 234, 0.1);
    animation: fadeInUp 0.6s ease backwards;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(3) { animation-delay: 0.2s; }
.step-card:nth-child(5) { animation-delay: 0.3s; }
.step-card:nth-child(7) { animation-delay: 0.4s; }

.step-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.15) rotate(360deg);
}

.step-icon {
    font-size: 48px;
    margin: 15px 0;
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.2) rotate(-15deg);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 15px 0 10px;
}

.step-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ===================================
   Trust & Security Section
   =================================== */

.trust-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
    position: relative;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-section h2 {
    font-size: 36px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.badge-item {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    animation: fadeInUp 0.6s ease backwards;
}

.badge-item:nth-child(1) { animation-delay: 0.1s; }
.badge-item:nth-child(2) { animation-delay: 0.2s; }
.badge-item:nth-child(3) { animation-delay: 0.3s; }
.badge-item:nth-child(4) { animation-delay: 0.4s; }

.badge-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.badge-item i {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.badge-item:hover i {
    transform: scale(1.2);
}

.badge-item span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.badge-item:hover span {
    color: #667eea;
}

/* ===================================
   Responsive Design - Features & Stats
   =================================== */

@media (max-width: 768px) {
    .features-section,
    .how-works-section {
        padding: 50px 20px;
    }

    .features-section::before,
    .features-section::after,
    .how-works-section::before,
    .how-works-section::after {
        display: none;
    }

    .section-header h2,
    .works-header h2,
    .trust-section h2 {
        font-size: 28px;
    }

    .section-header p,
    .works-header p {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }

    .stats-section {
        padding: 50px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }

    .stat-icon {
        font-size: 36px;
    }

    .steps-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .step-connector {
        display: none !important;
    }

    .step-card {
        padding: 25px 20px;
    }

    .step-icon {
        font-size: 36px;
    }

    .step-card h3 {
        font-size: 16px;
    }

    .step-card p {
        font-size: 13px;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .badge-item {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .features-section,
    .stats-section,
    .how-works-section,
    .trust-section {
        padding: 40px 15px;
    }

    .section-header,
    .stats-header,
    .works-header {
        margin-bottom: 40px;
    }

    .section-header h2,
    .works-header h2,
    .trust-section h2,
    .stats-header h2 {
        font-size: 22px;
    }

    .section-header p,
    .works-header p,
    .stats-header p {
        font-size: 14px;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-card {
        padding: 20px 15px;
    }

    .step-icon {
        font-size: 32px;
    }
}

/* ===================================
   Footer Styles
   =================================== */

.footer {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.60) 0%, rgba(50, 50, 50, 0.60) 100%);
    color: #e0e0e0;
    /* padding: 20px 5px 5px; */
    border-top: 2px solid rgba(102, 126, 234, 0.3);
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 10px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0;
}

.trust-seal-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-seal-link {
    display: inline-block;
    padding: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.trust-seal-link:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.trust-seal-link img {
    max-width: 120px;
    height: auto;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    color: #888;
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

/* ===================================
   Responsive Design - Mobile
   =================================== */

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .auth-container {
        flex: none;
        padding: 20px;
        border-right: none;
        border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    }

    .auth-card {
        max-width: 100%;
    }

    .carousel-container {
        flex: none;
        padding: 20px;
    }

    .carousel-card {
        max-width: 100%;
    }

    .auth-toggle-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .toggle-btn {
        width: 100%;
    }

    .card {
        border-radius: 12px !important;
    }

    .password-requirements {
        grid-template-columns: 1fr;
    }

    .requirement-row {
        flex-direction: column !important;
        gap: 8px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .trust-seal-section {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 15px;
    }

    .auth-card {
        width: 100%;
    }

    .card {
        border-radius: 10px !important;
    }

    .form-group {
        margin-bottom: 12px !important;
    }

    .form-label {
        font-size: 13px;
    }

    .form-control {
        font-size: 14px;
        padding: 8px 10px !important;
    }

    .btn {
        font-size: 14px;
        padding: 8px 12px !important;
    }

    .carousel-container {
        padding: 15px;
    }

    .carousel-card {
        padding: 20px;
    }

    .carousel-header {
        font-size: 16px;
    }

    .footer {
        padding: 30px 15px 15px;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-section {
        padding: 10px 0;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-text {
        font-size: 12px;
    }

    .trust-seal-link img {
        max-width: 100px;
    }
}
