@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #02120a;
    --card-bg: rgba(5, 26, 16, 0.95);
    --gold-primary: #ffd700;
    --gold-gradient: linear-gradient(135deg, #f39c12, #f1c40f, #d4af37);
    --text-main: #ffffff;
    --text-muted: #a3b899;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
    height: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
}

/* Floating Gold Particle Background */
.gold-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.gold-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255,215,0,0.8) 0%, rgba(212,175,55,0) 70%);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(105vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(50px) scale(1.2);
        opacity: 0;
    }
}

.page-wrapper {
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    z-index: 1;
}

/* Increased Thickness & Indian Flag Tri-Color Running Border Effect */
.auth-card-wrapper {
    position: relative;
    width: 100%;
    border-radius: 24px;
    padding: 4.5px; /* Increased border thickness */
    background: linear-gradient(60deg, #FF9933, #FFFFFF, #138808, #FFD700, #FF9933);
    background-size: 300% 300%;
    animation: runningBorder 5s ease infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 153, 51, 0.3);
}

@keyframes runningBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-card {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 35px 30px;
    border-radius: 20px;
    text-align: center;
}

.logo {
    max-width: 95px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6)) brightness(1.05);
    transition: transform 0.4s ease, filter 0.4s ease;
    animation: logoGlow 4s ease-in-out infinite alternate;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)) brightness(1.15);
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)) brightness(1);
    }
    100% {
        filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.8)) brightness(1.1);
    }
}

h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 1.5px;
}

p.subtitle {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

label {
    display: block;
    color: #e2f0d9;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(2, 12, 7, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
    outline: none;
}

.btn {
    width: 100%;
    padding: 13px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 10px;
    color: #02120a;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.5);
}

.footer-text {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 12px;
}
.alert.success { background: rgba(40, 167, 69, 0.2); border: 1px solid #28a745; color: #75b798; }
.alert.error { background: rgba(220, 53, 69, 0.2); border: 1px solid #dc3545; color: #ea868f; }

.site-footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.03);
    width: 100%;
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 10px;
    }
    .auth-card {
        padding: 25px 15px;
    }
}