/* Authentication & Forms Styles */

/* Auth Layout */
.auth-main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

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

/* Sidebar */
.auth-sidebar {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.auth-sidebar-content h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.feature-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feature-list i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.feature-list strong {
    display: block;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-list p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Forms */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    z-index: 2;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 16px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #374151;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

/* Select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
}

/* Buttons */
.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert i {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fed7aa;
}

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

/* Auth footer */
.auth-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #6b7280;
    margin: 0;
}

.auth-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Error messages */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: "⚠";
    font-size: 0.75rem;
}

/* Field validation states */
.input-group input.error,
.input-group select.error,
.input-group textarea.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.input-group input.success,
.input-group select.success,
.input-group textarea.success {
    border-color: #10b981;
    background: #ecfdf5;
}

/* File upload */
.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.file-upload:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.file-upload.dragover {
    border-color: #2563eb;
    background: #dbeafe;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.file-upload-text {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Multi-step forms */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.form-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 1rem;
}

.form-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.form-step:last-child::after {
    display: none;
}

.form-step.active {
    color: #2563eb;
}

.form-step.completed {
    color: #10b981;
}

.form-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.form-step.active .form-step-number {
    background: #2563eb;
    color: white;
}

.form-step.completed .form-step-number {
    background: #10b981;
    color: white;
}

.form-step-title {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-sidebar {
        order: -1;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-steps {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-step::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-main {
        padding: 1rem 0;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .auth-sidebar {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 14px 14px 14px 44px;
    }
    
    .btn-block {
        padding: 14px;
    }
} 