* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #26c6d1 0%, #007c85 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.auth-header {
    padding: 30px 30px 20px;
    text-align: center;
    background: white;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 25px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e9ecef;
    transform: translateX(-2px);
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #26c6d1 0%, #007c85 100%);
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #718096;
    font-size: 16px;
    margin-bottom: 30px;
}

.auth-forms {
    padding: 0 30px 40px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #26c6d1;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #26c6d1 0%, #007c85 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading {
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-footer {
    text-align: center;
    margin-top: 30px;
}

.form-footer a {
    color: #b4794a;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    background: #f7fafc;
    color: #8f4f1b;
}

.social-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.social-btn {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    border-color: #cbd5e0;
    background: #f8f9fa;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #a0aec0;
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.error-message {
    background: #fed7d7;
    color: #9b2c2c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #e53e3e;
}

.success-message {
    background: #c6f6d5;
    color: #276749;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #38a169;
}

.forgot-link {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-link a {
    color: #26c6d1;
    text-decoration: none;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .auth-header {
        padding: 25px 25px 15px;
    }
    
    .auth-forms {
        padding: 0 25px 30px;
    }
    
    .auth-title {
        font-size: 24px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auth-container {
        background: #1a202c;
    }
    
    .auth-title {
        color: #f7fafc;
    }
    
    .auth-subtitle {
        color: #a0aec0;
    }
    
    .form-group input {
        background: #2d3748;
        border-color: #4a5568;
        color: #f7fafc;
    }
    
    .form-group input::placeholder {
        color: #718096;
    }
}