/* Auth Pages Styling */

/* Auth Page Layout */
.auth-page {
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
    min-height: 100vh;
}

/* Navbar on auth pages - dark background so white logo is visible */
.auth-page .navbar {
    background: var(--navy);
}

.auth-section {
    padding: 120px 0 60px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

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

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--navy);
    font-size: 0.9rem;
}

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

.input-wrapper i:first-child {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

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

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--gold);
}

/* Checkbox Group */
.checkbox-group {
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
    left: 0;
    top: 2px;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    position: relative;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-label input:checked + .checkmark::before {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-label a {
    color: var(--gold);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Upload Hints */
.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upload-hint i {
    color: var(--gold);
    font-size: 0.75rem;
}

/* Form Messages */
.form-error,
.form-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
}

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

.form-error i {
    font-size: 1.1rem;
    margin-top: 2px;
}

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

.form-success i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.form-success div strong {
    display: block;
    margin-bottom: 5px;
}

.form-success a {
    color: var(--gold);
    font-weight: 600;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

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

.auth-divider span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Social Login */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: var(--navy);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover:not(:disabled) {
    border-color: var(--gold);
    background: #fffbeb;
}

.btn-social:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

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

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

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

/* Auth Benefits Sidebar */
.auth-benefits {
    background: linear-gradient(135deg, var(--navy) 0%, #1a365d 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
}

.auth-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--gold);
}

.auth-benefits ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-benefits li i {
    color: var(--gold);
    font-size: 1.2rem;
}

.auth-benefits li span {
    font-size: 1rem;
    opacity: 0.95;
}

.benefits-note {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefits-note i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 2px;
}

.benefits-note p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Compact Footer */
.footer.compact {
    background: var(--navy);
    padding: 20px 0;
}

.footer.compact .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    border: none;
}

.footer.compact .footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer.compact .footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer.compact .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer.compact .footer-bottom-links a:hover {
    color: var(--gold);
}

/* Business Portal Specific */
.business-auth-benefits {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a5f 100%);
}

.business-auth-benefits .feature-list {
    margin-top: 30px;
}

.business-auth-benefits .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.business-auth-benefits .feature-item:last-child {
    border-bottom: none;
}

.business-auth-benefits .feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-auth-benefits .feature-icon i {
    color: var(--gold);
    font-size: 1.1rem;
}

.business-auth-benefits .feature-text h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
}

.business-auth-benefits .feature-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* File Upload */
.file-upload-group {
    margin-top: 10px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--gold);
    background: #fffbeb;
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--text-muted);
}

.file-upload-label span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

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

.file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f0fdf4;
    border-radius: 8px;
    margin-top: 10px;
}

.file-preview i {
    color: #16a34a;
}

.file-preview span {
    flex: 1;
    font-size: 0.9rem;
    color: var(--navy);
}

.file-preview button {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 5px;
}

/* Form Section Divider */
.form-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Textarea */
.input-wrapper textarea {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.input-wrapper.textarea-wrapper i:first-child {
    top: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-benefits {
        order: -1;
    }
}

@media (max-width: 600px) {
    .auth-section {
        padding: 100px 0 40px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .auth-header h1 {
        font-size: 1.6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-benefits {
        padding: 25px 20px;
    }

    .footer.compact .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
