/* Authentication Page Styles */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.auth-header {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.logo p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Form hints and tips */
.form-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

.password-tips {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2196F3;
}

.password-tips h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 0.9rem;
}

.password-tips ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.password-tips li {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

.password-tips li:last-child {
    margin-bottom: 0;
}

/* Form Container */
.form-container {
    padding: 30px 25px;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.tab-btn.active {
    background: white;
    color: #2196F3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

/* Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2196F3;
    background: white;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Button Styles */
.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.auth-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    margin: 5px 0;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .auth-header {
        padding: 25px 20px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px;
    }
}

/* Loading States */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Input Validation Styles */
.form-group input:invalid {
    border-color: #f44336;
}

.form-group input:valid {
    border-color: #4caf50;
}

/* Custom Select Styling */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    appearance: none;
    padding-right: 40px;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Focus Management */
.form-group {
    position: relative;
}

.form-group input:focus + label,
.form-group select:focus + label {
    color: #2196F3;
}

/* Security Notice */
.security-notice {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #1565c0;
}

.security-notice h4 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.security-notice ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.security-notice li {
    margin-bottom: 4px;
}
