/* CampusDesk - Authentication Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.auth-brand {
    position: relative;
    z-index: 1;
}

.auth-brand .logo {
    height: 60px;
    margin-bottom: 24px;
}

.auth-brand h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-brand p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 48px;
}

.auth-features {
    position: relative;
    z-index: 1;
}

.auth-features .feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.auth-features .feature-icon {
    font-size: 24px;
}

.auth-features .feature span:last-child {
    font-size: 16px;
    font-weight: 500;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
}

.auth-form-container h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.auth-form-container .subtitle {
    color: #64748b;
    margin-bottom: 32px;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

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

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-form .help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.auth-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.auth-form .checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.auth-form .checkbox-label a {
    color: #4f46e5;
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-success:hover {
    background: #15803d;
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 16px 24px;
    font-size: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.auth-footer a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.forgot-link {
    color: #4f46e5;
    text-decoration: none;
    font-size: 14px;
}

.pricing-info {
    margin-top: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pricing-info h4 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 16px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.pricing-row.total {
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 16px;
    font-weight: 600;
}

.pricing-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 12px;
}

.help-section {
    margin-top: 32px;
    padding: 20px;
    background: #eff6ff;
    border-radius: 8px;
    text-align: center;
}

.help-section h4 {
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 12px;
}

.help-section p {
    font-size: 13px;
    color: #3b82f6;
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        padding: 40px;
        min-height: auto;
    }
    
    .auth-brand h1 {
        font-size: 36px;
    }
    
    .auth-features {
        display: none;
    }
}

@media (max-width: 640px) {
    .auth-right {
        padding: 24px;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-form-container h2 {
        font-size: 24px;
    }
}
