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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Alert Messages */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #38b6ff;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-left: 4px solid #38b6ff;
    font-weight: 500;
}

/* Main Container */
.auth-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
.auth-header {
    padding: 40px 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
	position: relative;
}

.auth-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f1f1f1;
    color: #333;
}


/* Tab Navigation */
.tab-nav {
    display: flex;
    margin-bottom: 0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    text-decoration: none;
    display: block;
    text-align: center;
}

.tab-btn.active {
    background: white;
    color: #38b6ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-btn:hover {
    color: #38b6ff;
    text-decoration: none;
}

/* Form Content */
.auth-content {
    padding: 30px 40px 40px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #38b6ff;
    box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.1);
}

.form-input:required:valid {
    border-color: #10b981;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #38b6ff, #4ecdc4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(56, 182, 255, 0.3);
}

.submit-btn.register {
    background: linear-gradient(45deg, #10b981, #059669);
}

.submit-btn.register:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Links */
.auth-link {
    display: block;
    text-align: center;
    color: #38b6ff;
    text-decoration: none;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
    color: #2563eb;
}

/* Divider */
.divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 25px 0;
}

/* Form Row for First/Last Name */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-container {
        margin: 10px;
        max-width: none;
    }
    
    .auth-header,
    .auth-content {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

/* Success/Error States */
.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading State */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Focus improvements for accessibility */
.tab-btn:focus,
.form-input:focus,
.submit-btn:focus {
    outline: 2px solid #38b6ff;
    outline-offset: 2px;
}
