/* ============================================
   FortunaGo.Me Stylesheet
   Mystical Luxury Design
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #F8F6F3;
    overflow-x: hidden;
    background: #4A1A6B;
    line-height: 1.6;
}

/* ============================================
   ANIMATED STARS BACKGROUND
   ============================================ */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="%23D4AF37" opacity="0.8"/></svg>') repeat;
    animation: animateStars 50s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1" fill="%23F4D03F" opacity="0.6"/></svg>') repeat;
    animation: animateStars 100s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><circle cx="2" cy="2" r="1.5" fill="%23FFF8E7" opacity="0.4"/></svg>') repeat;
    animation: animateStars 150s linear infinite;
}

@keyframes animateStars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-2000px);
    }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, rgba(91, 42, 125, 0.6) 0%, rgba(74, 26, 107, 0.8) 50%, rgba(58, 10, 91, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    margin-bottom: 40px;
}

.logo {
    width: 216px;
    height: 216px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    animation: floatLogo 3s ease-in-out infinite;
}

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

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 56px;
    font-weight: 700;
    font-style: italic;
    color: #F4D03F;
    text-transform: none;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(244, 208, 63, 0.6);
    animation: fadeIn 1.2s ease-out 0.3s both;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: #FFF8E7;
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease-out 0.6s both;
}

.bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(244, 208, 63, 0.1) 100%);
    border: 2px solid #D4AF37;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #F4D03F;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: fadeIn 1.2s ease-out 0.9s both, pulse 2s ease-in-out infinite;
}

.star-icon {
    width: 20px;
    height: 20px;
    color: #D4AF37;
}

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

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #F4D03F;
    text-align: center;
    margin-bottom: 10px;
}

.form-description {
    font-size: 16px;
    color: #E8E3DC;
    text-align: center;
    margin-bottom: 30px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    background: rgba(248, 246, 243, 0.95);
    border: 2px solid #C5A572;
    border-radius: 25px;
    padding: 15px 25px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: #2C2C2C;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #8C8C8C;
}

.form-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    gap: 10px;
}

.country-select {
    flex: 0 0 120px;
    background: rgba(248, 246, 243, 0.95);
    border: 2px solid #C5A572;
    border-radius: 25px;
    padding: 15px 15px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: #2C2C2C;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.country-select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.phone-input {
    flex: 1;
}

/* Checkbox */
.checkbox-group {
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: relative;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: rgba(248, 246, 243, 0.95);
    border: 2px solid #C5A572;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-checkbox:checked + .checkbox-custom {
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    border-color: #D4AF37;
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #2C2C2C;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: #E8E3DC;
    line-height: 1.5;
}

.policy-link {
    color: #F4D03F;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #D4AF37;
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    font-size: 13px;
    color: #ff6b6b;
    min-height: 18px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #2C2C2C;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    color: #2C2C2C;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInScale 0.5s ease-out;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.success-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #F4D03F;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: #E8E3DC;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: 60px;
    text-align: center;
    animation: fadeIn 1.5s ease-out 1.2s both;
}

.footer p {
    font-size: 14px;
    color: #C5A572;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .logo {
        width: 180px;
        height: 180px;
    }
    
    .form-card {
        padding: 30px 25px;
    }
    
    .form-title {
        font-size: 28px;
    }
    
    .bonus-badge {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }
    
    .hero-section {
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .logo {
        width: 144px;
        height: 144px;
    }
    
    .bonus-badge {
        font-size: 13px;
        padding: 10px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-card {
        padding: 25px 20px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-description {
        font-size: 14px;
    }
    
    .phone-input-wrapper {
        flex-direction: column;
    }
    
    .country-select {
        flex: 1;
        width: 100%;
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 14px;
    }
    
    .footer {
        margin-top: 40px;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 32px;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
    
    .form-card {
        padding: 20px 15px;
    }
}
