/* ===== IMPORT FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600&display=swap');

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

:root {
    --gold: #d4af37;
    --gold-light: #f0d060;
    --gold-dark: #a8832a;
    --dark-bg: #0a0a0f;
    --dark-card: #12121e;
    --dark-input: #1a1a2e;
    --dark-border: #2a2a4a;
    --text-primary: #e8e8f0;
    --text-secondary: #8888aa;
    --accent-purple: #6c3fc5;
    --accent-blue: #1e3a5f;
    --success: #2ecc71;
    --error: #e74c3c;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--dark-bg);
    font-family: 'Raleway', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(108, 63, 197, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 58, 95, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== WRAPPER ===== */
.wrapper {
    background: linear-gradient(145deg, #12121e 0%, #1a1a2e 50%, #0f0f1e 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 45px 40px;
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 0 0 1px rgba(212, 175, 55, 0.05),
        0 0 40px rgba(212, 175, 55, 0.08),
        0 0 80px rgba(108, 63, 197, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.6);
}

.wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e1e3e, #2a2a5e);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(108, 63, 197, 0.1);
    animation: pulseLogo 3s ease-in-out infinite;
}

@keyframes pulseLogo {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(108, 63, 197, 0.1); }
    50% { box-shadow: 0 0 35px rgba(212, 175, 55, 0.4), inset 0 0 30px rgba(108, 63, 197, 0.2); }
}

.logo-icon i {
    font-size: 28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 8px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 6px;
    animation: shimmerText 3s ease-in-out infinite;
    background-size: 200% auto;
}

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

.subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 15px;
}

.divider-gold {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto;
}

/* ===== INFO BAR ===== */
.info-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.info-item {
    flex: 1;
    min-width: 140px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(108, 63, 197, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gold-light);
    font-weight: 500;
}

.info-item i {
    color: var(--gold);
    font-size: 13px;
}

/* ===== FORM GROUP ===== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group label i {
    color: var(--gold);
    margin-right: 6px;
}

/* ===== INPUT WRAPPER ===== */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-wrapper:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.05);
}

.input-wrapper:focus-within {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08), 0 0 20px rgba(212, 175, 55, 0.1);
    background: rgba(30, 30, 55, 0.9);
}

.prefix {
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    border-right: 1px solid rgba(212, 175, 55, 0.15);
    white-space: nowrap;
}

.icon-input {
    padding: 0 14px;
    color: var(--text-secondary);
    font-size: 13px;
    border-right: 1px solid rgba(212, 175, 55, 0.1);
}

.input-wrapper input,
.input-wrapper select {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    width: 100%;
}

.input-wrapper input::placeholder {
    color: rgba(136, 136, 170, 0.6);
    font-size: 13px;
}

.input-wrapper input[type="number"]::-webkit-outer-spin-button,
.input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== SELECT ===== */
.select-wrapper {
    position: relative;
}

.input-wrapper select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.input-wrapper select option {
    background: #1a1a2e;
    color: var(--text-primary);
    padding: 10px;
}

.input-wrapper select optgroup {
    background: #12121e;
    color: var(--gold);
    font-weight: 700;
}

/* ===== HINT ===== */
.hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--gold-dark);
    letter-spacing: 0.5px;
}

.hint i {
    margin-right: 4px;
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    background: linear-gradient(135deg, #a8832a, #d4af37, #f0d060, #d4af37, #a8832a);
    background-size: 200% auto;
    border: none;
    border-radius: 12px;
    color: #0a0a0f;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-submit:hover {
    background-position: right center;
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer p {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.footer p i {
    color: var(--gold);
    margin-right: 5px;
}

.footer-brand {
    font-size: 11px !important;
    color: rgba(136, 136, 170, 0.5) !important;
}

.footer-brand span {
    color: var(--gold-dark);
    font-weight: 600;
}

/* ===== ALERT MESSAGES ===== */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease;
}

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

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .wrapper {
        padding: 30px 20px;
    }

    .title {
        font-size: 28px;
        letter-spacing: 5px;
    }

    .info-bar {
        flex-direction: column;
    }

    .info-item {
        min-width: unset;
    }
}

@media (max-width: 360px) {
    .wrapper {
        padding: 25px 15px;
    }

    .title {
        font-size: 24px;
        letter-spacing: 4px;
    }
}
