/* ============================================
   LIGHT THEME STYLES - Credit Forms
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f7ff 100%);
    overflow-x: hidden;
    padding-top: 70px;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-animation .circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
    animation: float 20s infinite ease-in-out;
}

.bg-animation .circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-animation .circle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.bg-animation .circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(30px, 10px) scale(1.05); }
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader .logo {
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.preloader .logo img {
    max-width: 200px;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.15));
}

.loader-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* ============================================
   STICKY HEADER
   ============================================ */
.sticky-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.sticky-banner .logo {
    display: block;
    width: 100%;
}

.sticky-banner .logo img {
    width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: cover;
    display: block;
}

/* ============================================
   BANNER SLIDER
   ============================================ */
.banner-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    height: 220px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide.active {
    opacity: 1;
    transform: scale(1);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #6366f1;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main {
    position: relative;
    z-index: 1;
    padding: 20px 15px 40px;
    display: flex;
    justify-content: center;
}

/* ============================================
   FORM CONTAINER
   ============================================ */
.form-container {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.08);
    padding: 35px 30px;
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header .icon-wrapper {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.25);
}

.form-header .icon-wrapper i {
    font-size: 26px;
    color: white;
}

.form-header h2 {
    color: #1e293b;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   USER FORM
   ============================================ */
.user-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Labels */
.user-form label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: -10px;
}

/* Input Container with Icon */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-container:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #ffffff;
}

.input-container i {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 1;
}

.input-container:focus-within i {
    color: #6366f1;
}

.input-container input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
}

.input-container input::placeholder {
    color: #94a3b8;
}

/* Regular Inputs (without icon container) */
.user-form input:not(.input-container input) {
    width: 100%;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    transition: all 0.3s ease;
    outline: none;
}

.user-form input:not(.input-container input):focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #ffffff;
}

.user-form input:not(.input-container input)::placeholder {
    color: #94a3b8;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ============================================
   BUTTONS
   ============================================ */
button,
.user-form button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    margin-top: 8px;
}

button:hover,
.user-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

button:active,
.user-form button:active {
    transform: translateY(0);
}

/* ============================================
   VERIFICATION CARDS (for verify.php)
   ============================================ */
.verification-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.verification-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.verification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.04));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.verification-card:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.12);
}

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

.verification-card:hover .card-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.verification-card:hover .arrow-icon {
    transform: translateX(5px);
    color: #6366f1;
}

.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.card-icon i {
    font-size: 20px;
    color: white;
}

.card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.card-content h3 {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-content p {
    color: #64748b;
    font-size: 13px;
}

.arrow-icon {
    color: #94a3b8;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* ============================================
   SECURITY BADGE
   ============================================ */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.security-badge i {
    color: #22c55e;
    font-size: 15px;
}

.security-badge span {
    color: #64748b;
    font-size: 12px;
}

/* ============================================
   INFO BOX
   ============================================ */
.info-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 20px;
}

.info-box p {
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-container {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.success-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
    max-width: 450px;
    width: 100%;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.3);
}

.success-icon .checkmark {
    font-size: 50px;
    color: white;
    font-style: normal;
}

.success-card h1 {
    color: #22c55e;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.success-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.timer {
    display: inline-block;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    font-size: 24px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 12px;
    margin: 15px 0;
    font-family: 'Inter', monospace;
}

.success-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 25px 15px;
    color: #94a3b8;
    font-size: 12px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 600px) {
    body {
        padding-top: 55px;
    }

    .sticky-banner .logo img {
        max-height: 55px;
    }

    .banner-container {
        height: 160px;
        margin: 15px auto;
    }

    .form-container {
        padding: 28px 22px;
        margin: 0 5px;
        border-radius: 16px;
    }

    .form-header h2 {
        font-size: 20px;
    }

    .form-header .icon-wrapper {
        width: 55px;
        height: 55px;
    }

    .form-header .icon-wrapper i {
        font-size: 22px;
    }

    .input-container input {
        padding: 14px 14px 14px 44px;
        font-size: 14px;
    }

    .user-form input:not(.input-container input) {
        padding: 14px;
        font-size: 14px;
    }

    button {
        padding: 14px 20px;
        font-size: 14px;
    }

    .verification-card {
        padding: 18px;
        gap: 14px;
    }

    .card-icon {
        width: 46px;
        height: 46px;
    }

    .card-icon i {
        font-size: 18px;
    }

    .card-content h3 {
        font-size: 14px;
    }

    .card-content p {
        font-size: 12px;
    }

    .success-card {
        padding: 40px 25px;
    }

    .success-card h1 {
        font-size: 26px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon .checkmark {
        font-size: 40px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-white { color: #ffffff; }
.text-dark { color: #1e293b; }
.text-muted { color: #64748b; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
