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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    z-index: 10;
    position: relative;
}

.form-container {
    background: rgba(45, 45, 45, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 240px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) brightness(1.1) contrast(1.2);
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #f5f5dc;
    font-size: 28px;
    font-weight: 300;
}

.error-message {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.success-message {
    background: rgba(40, 167, 69, 0.2);
    color: #51cf66;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.recovery-phrase {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.recovery-phrase h3 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 20px;
}

.phrase-text {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    word-break: break-word;
    color: #f5f5dc;
}

.phrase-warning {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
}

.phrase-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-copy {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-copy:hover {
    background: #5a6268;
}

.btn-continue {
    background: #28a745;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-continue:hover {
    background: #218838;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #f5f5dc;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #f5f5dc;
    box-shadow: 0 0 0 2px rgba(245, 245, 220, 0.2);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f5f5dc 0%, #ddd8c0 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 245, 220, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.7);
}

.form-footer a {
    color: #f5f5dc;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .phrase-actions {
        flex-direction: column;
    }
    
    .btn-copy,
    .btn-continue {
        width: 100%;
        text-align: center;
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(245, 245, 220, 0.3);
    border-radius: 50%;
    animation: particle-float 8s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
    animation-duration: 6s;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.referral-code-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
}

.referral-code-text {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    letter-spacing: 2px;
    margin: 10px 0;
}

.referral-info {
    color: #6c757d;
    font-size: 14px;
    margin: 5px 0;
}

.input-group small {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.site-name {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #f5f5dc 0%, #ffffff 50%, #f5f5dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 20px;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 20px rgba(245, 245, 220, 0.5));
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(245, 245, 220, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(245, 245, 220, 0.8));
    }
}