/* HUSTLR Authentication Styles - Claude AI Inspired */

/* Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.auth-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.25rem;
    border-radius: 6px;
}

.auth-close-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

/* Form Styles */
.auth-form {
    text-align: center;
}

.auth-form h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
    letter-spacing: -0.02em;
}

.auth-form p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group small {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: block;
    line-height: 1.4;
}

/* Form Section Divider */
.form-section-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1rem 0;
    text-align: left;
}

.form-section-divider::before {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
    margin-right: 10px;
}

.form-section-divider span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form Row for Side-by-Side Fields */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

.form-group-half input {
    width: 100%;
}

.auth-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Links */
.auth-links {
    text-align: center;
}

.auth-links p {
    color: #6b7280;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Error Messages */
.error-message {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
    display: none;
    border-radius: 8px;
}

.error-message:not(:empty) {
    display: block;
}

/* Success Toast */
.success-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #ffffff;
    color: #059669;
    border: 1px solid #d1fae5;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10001;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* User Info in Header */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #374151;
    font-size: 0.875rem;
}

.sign-out-btn {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sign-out-btn:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

/* User Type Selection Buttons */
.user-type-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.user-type-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.user-type-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Step 0 User Type Selection Buttons (Large) */
.user-type-select-btn {
    width: 100%;
    padding: 1.5rem 2rem;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-type-select-btn:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.user-type-select-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .user-info {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .success-toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}
