/* Auth Pages Common Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --primary-color: #667eea;
    --primary-hover: #764ba2;
}

html, body {
    height: auto;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

body.register-page {
    overflow-y: auto !important;
    height: auto !important;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-wrapper.register-wrapper {
    padding: 1.5rem 0.5rem;
    min-height: auto;
    align-items: flex-start;
}

.auth-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.auth-container.register-container {
    max-width: 1300px;
}

/* Branding Section */
.auth-branding {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    flex: 1;
    background: var(--primary-gradient);
}

.register-container .auth-branding {
    padding: 2rem;
}

.register-container .auth-branding .brand-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.register-container .auth-branding h1 {
    font-size: 1.6rem;
}

.register-container .auth-branding .benefits {
    margin-top: 1.25rem;
}

.register-container .auth-branding .benefits li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-branding .brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.auth-branding h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-branding p {
    opacity: 0.9;
    font-size: 1rem;
    max-width: 280px;
}

.auth-branding .features,
.auth-branding .benefits {
    margin-top: 2rem;
    text-align: left;
}

.auth-branding .features li,
.auth-branding .benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.auth-branding .features li i,
.auth-branding .benefits li i {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem;
    border-radius: 50%;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.auth-branding .benefits li strong {
    display: block;
    margin-bottom: 0.25rem;
}

.auth-branding .benefits li span {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Form Container */
.auth-form-container {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-container.register-form {
    flex: 1.5;
    padding: 1.5rem 2rem;
}

.auth-form-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.auth-form-container .subtitle {
    color: #666;
    margin-bottom: 1rem;
}

.register-form h2 {
    font-size: 1.35rem;
}

.register-form .subtitle {
    margin-bottom: 0.75rem;
}

/* Form Elements */
.form-floating {
    margin-bottom: 0.75rem;
}

.register-form .form-floating {
    margin-bottom: 0.6rem;
}

.form-floating .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.85rem 0.85rem 0.85rem 2.75rem;
    height: auto;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-floating label {
    padding-left: 3rem;
    color: #999;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 10;
    font-size: 1.1rem;
}

.form-floating:focus-within .input-icon {
    color: var(--primary-color);
}

/* Buttons */
.btn-auth {
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    width: 100%;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    background: var(--primary-gradient);
}

.register-form .btn-auth {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.btn-auth:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #999;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    padding: 0 1rem;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.register-form .auth-footer {
    margin-top: 0.5rem;
}

.auth-footer a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    color: var(--primary-color);
}

.auth-footer a:hover {
    color: var(--primary-hover);
}

/* Alerts */
.alert-custom {
    border: none;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-custom.alert-danger {
    background: #fff5f5;
    color: #c53030;
}

.alert-custom.alert-success {
    background: #f0fff4;
    color: #276749;
}

/* Remember & Forgot */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

/* Password Requirements */
.password-requirements {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2ff 100%);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #666;
    border: 1px solid #e0e7ff;
}

.password-requirements h6 {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 0.35rem;
}

.password-requirements ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.password-requirements li {
    margin-bottom: 0.15rem;
}

/* Terms Checkbox */
.terms-check {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.terms-check a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Row Inputs */
.row-inputs {
    display: flex;
    gap: 1rem;
}

.row-inputs .form-floating {
    flex: 1;
}

/* Form Sections */
.form-section {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0.25rem;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-section-title i {
    color: var(--primary-color);
}

/* File Upload */
.file-upload-wrapper {
    margin-bottom: 0.6rem;
    position: relative;
}

.file-upload-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem 0.75rem;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    text-align: center;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.06) 100%);
    transform: translateY(-2px);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-style: solid;
    transform: scale(1.02);
}

.file-upload-area.drag-over .file-upload-icon {
    transform: scale(1.1);
    background: var(--primary-gradient);
    color: #fff;
}

.file-upload-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.file-upload-title {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.file-upload-subtitle {
    font-size: 0.75rem;
    color: #667;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.file-upload-area:hover .file-upload-btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.file-upload-info {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.file-upload-info span {
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
}

/* File Preview */
.file-preview {
    margin-top: 0;
}

.preview-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 12px;
    border: 1px solid #c4b5fd;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-image-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-details {
    flex: 1;
    min-width: 0;
}

.preview-file-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.preview-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-size {
    font-size: 0.75rem;
    color: #666;
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.preview-status i {
    font-size: 0.9rem;
}

.preview-remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 8px;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.preview-remove-btn:hover {
    background: #fef2f2;
    transform: scale(1.05);
}

/* Upload Error */
.upload-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.8rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.upload-error i {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-branding {
        display: none;
    }
    
    .auth-container {
        border-radius: 16px;
    }
    
    .auth-form-container {
        padding: 2rem;
    }
    
    .row-inputs {
        flex-direction: column;
        gap: 0;
    }
    
    .file-upload-area {
        padding: 1.5rem 1rem;
    }
    
    .file-upload-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .preview-container {
        flex-wrap: wrap;
    }
    
    .preview-image-wrapper {
        width: 60px;
        height: 60px;
    }
}

