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

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Auth Box Styling */
.auth-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.auth-box:hover {
    transform: translateY(-5px);
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form Input Styling */
.form-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6B7FD7;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(107, 127, 215, 0.3);
}

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

/* Button Styling */
.auth-btn {
    width: 100%;
    padding: 1rem;
    background: #6B7FD7;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-btn:hover {
    background: #5668c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 127, 215, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    background: #4a4a4a;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    margin-left: 10px;
}

.auth-btn.loading .loading-spinner {
    display: block;
    animation: spin 1s linear infinite;
}

.auth-btn.loading {
    background: #4a4a4a;
    cursor: wait;
}

/* Verification Section */
.verification-section {
    display: none;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-code {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
}

.code-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border-radius: 8px;
    border: 2px solid #6B7FD7;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #8b9be0;
    box-shadow: 0 0 0 3px rgba(107, 127, 215, 0.3);
    transform: scale(1.05);
}

.back-button {
    background: none;
    border: none;
    color: #6B7FD7;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 0;
    margin-bottom: 15px;
    width: auto;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #8b9be0;
    transform: translateX(-5px);
}

#emailDisplay {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 10px 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verification-section.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Loading Animation */
.auth-btn.loading {
    background: #4a4a4a;
    cursor: wait;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .auth-box {
        margin: 20px;
        padding: 1.5rem;
    }

    .verification-code {
        gap: 8px;
    }

    .code-input {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
} 