.auth-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.auth-container.show {
    display: flex;
}

.auth-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.close-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.auth-form h2 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.auth-description {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.phone-input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 1rem;
}

.country-code {
    color: #666;
    padding: 0 0.5rem;
    border-right: 1px solid #ddd;
    margin-right: 0.5rem;
}

.verification-code-group {
    margin-bottom: 1rem;
}

.verification-code-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 2px;
}

.timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

#countdown {
    color: #666;
    font-size: 0.9rem;
}

.resend-btn {
    background: none;
    border: none;
    color: #27587b;
    cursor: pointer;
    font-size: 0.9rem;
}

.resend-btn:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #27587b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.terms-text {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.hidden {
    display: none;
}

/* Input focus styles */
input:focus {
    outline: none;
    border-color: #e74c3c;
}

/* Placeholder styles */
input::placeholder {
    color: #666;
}

/* Error state */
.error input {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: right;
}

/* Loading state */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
} 