/* ========================================
   Islamic Will Generator - Styles
   ======================================== */

:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8a;
    --primary-dark: #0f2744;
    --secondary: #d4af37;
    --secondary-light: #e6c860;
    --accent: #1b7340;
    --accent-light: #28a05a;
    --background: #f8f9fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --error: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.arabic {
    font-family: 'Amiri', serif;
    font-size: 1.5em;
    color: var(--secondary);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

/* Toolbar */
.toolbar {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 72px;
    z-index: 99;
}

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

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.toolbar-status {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.toolbar-btn:hover {
    background: #f1f5f9;
    border-color: var(--primary-light);
    color: var(--primary);
}

.toolbar-btn svg {
    flex-shrink: 0;
}

.toolbar-btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.toolbar-btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

@media (max-width: 640px) {
    .toolbar .container {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left {
        justify-content: center;
    }

    .toolbar-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .toolbar-btn span {
        display: none;
    }

    .toolbar-btn {
        padding: 0.5rem;
    }
}

/* Progress Bar */
.progress-container {
    background: var(--surface);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 130px;
    z-index: 98;
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.progress-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-number {
    background: var(--accent);
    color: white;
}

.progress-step.completed .progress-step-number {
    background: var(--accent);
    color: white;
}

.progress-step-label {
    display: none;
}

@media (min-width: 768px) {
    .progress-step-label {
        display: block;
    }
}

/* Main Content */
.main {
    padding: 2rem 0 4rem;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

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

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

.step-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.step-header h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--text-light);
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--secondary);
    margin: 1rem 0;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.info-box h3, .info-box h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-box ul {
    margin-left: 1.25rem;
    margin-top: 0.5rem;
}

.info-box.info-tip {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: var(--accent);
}

.info-box.info-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: var(--warning);
}

.info-box.info-islamic {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left-color: var(--accent);
}

.info-box.info-islamic h3, .info-box.info-islamic h4 {
    color: var(--accent);
}

.warning-text {
    color: var(--error);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Form Sections */
.form-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h3 {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-label.required::after {
    content: ' *';
    color: var(--error);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--surface);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    cursor: pointer;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .radio-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-card-content {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    background: var(--surface);
}

.radio-card input:checked + .radio-card-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.radio-card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.radio-card-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.radio-card-content p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Radio & Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    background: var(--surface);
}

.radio-label:hover, .checkbox-label:hover {
    border-color: var(--primary-light);
}

.radio-label input, .checkbox-label input {
    margin-top: 0.25rem;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label input:checked + span {
    color: var(--text);
}

.checkbox-label input:not(:checked) + span {
    color: var(--text-light);
}

.checkmark {
    display: none;
}

/* Section Title */
.section-title {
    font-size: 1.125rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

/* Dynamic List Items */
.list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.list-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.list-item-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-item-remove {
    background: none;
    border: 1px solid #fecaca;
    color: var(--error);
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
}

.list-item-remove:hover {
    background: #fef2f2;
    border-color: var(--error);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.list-item .form-grid {
    margin-bottom: 0;
}

/* Wasiyyah Meter */
.wasiyyah-meter {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.wasiyyah-meter-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.wasiyyah-meter-bar {
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.wasiyyah-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    transition: width 0.3s ease;
    border-radius: 6px;
}

.wasiyyah-meter-limit {
    position: absolute;
    right: 66.67%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--error);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn .icon {
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-outline-accent {
    background: var(--surface);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-add {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    color: var(--accent);
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-add:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 115, 64, 0.15);
}

.btn-add svg {
    flex-shrink: 0;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-disabled, .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Navigation */
.navigation {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    bottom: 0;
    z-index: 97;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-nav svg {
    flex-shrink: 0;
}

.btn-nav-prev {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.btn-nav-prev:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f9ff;
}

.btn-nav-next {
    background: linear-gradient(135deg, var(--accent) 0%, #22955e 100%);
    color: white;
    border-color: var(--accent);
    margin-left: auto;
}

.btn-nav-next:hover {
    background: linear-gradient(135deg, #22955e 0%, var(--accent) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 115, 64, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Review Section */
.review-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.review-section-title {
    font-weight: 600;
    color: var(--primary);
}

.review-section-edit {
    font-size: 0.8rem;
    color: var(--primary);
    background: #f0f9ff;
    border: 1px solid var(--primary-light);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0.3rem 0.75rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.review-section-edit:hover {
    background: var(--primary);
    color: white;
}

.review-section-content {
    padding: 1rem;
}

.review-item {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    flex: 0 0 40%;
    color: var(--text-light);
    font-size: 0.875rem;
}

.review-value {
    flex: 1;
    font-weight: 500;
}

/* Will Document */
.will-document {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    line-height: 1.8;
}

.will-document h1 {
    text-align: center;
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.will-document .will-arabic {
    text-align: center;
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.will-document h2 {
    color: var(--primary);
    font-size: 1.125rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.will-document h3 {
    color: var(--primary-light);
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
}

.will-document p {
    margin-bottom: 0.75rem;
}

.will-document table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.will-document th, .will-document td {
    border: 1px solid var(--border);
    padding: 0.5rem;
    text-align: left;
}

.will-document th {
    background: #f8fafc;
    font-weight: 600;
}

.will-signature-section {
    margin-top: 3rem;
    page-break-inside: avoid;
}

.will-signature-block {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
}

.will-signature-block h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.signature-line {
    border-bottom: 1px solid var(--text);
    height: 40px;
    margin: 0.5rem 0;
}

.signature-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.certification-block {
    background: #f8fafc;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.certification-block.mufti {
    border-color: var(--accent);
    background: #f0fdf4;
}

.certification-block h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certification-block.mufti h4 {
    color: var(--accent);
}

.certification-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.certification-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.stamp-area {
    width: 150px;
    height: 100px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer p {
    margin: 0.25rem 0;
}

/* Print Styles */
@media print {
    .header, .progress-container, .navigation, .action-buttons, .footer, .toolbar {
        display: none !important;
    }

    .main {
        padding: 0;
    }

    .will-document {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .step {
        display: none !important;
    }

    .step[data-step="12"],
    .step[data-step="10"],
    .step[data-step="9"] {
        display: block !important;
    }

    .will-signature-block, .certification-block {
        page-break-inside: avoid;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Saved Will Card */
.saved-will-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.saved-will-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.saved-will-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary);
}

.saved-will-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.saved-will-actions {
    display: flex;
    gap: 0.5rem;
}

.saved-will-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.draft {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.pending {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Load Options Modal */
#loadOptionsModal .modal-content {
    text-align: center;
}

#loadOptionsModal .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

#loadOptionsModal .btn .icon {
    font-size: 1.25rem;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        z-index: 105;
        padding: 2rem;
    }

    .header-nav.mobile-open {
        display: flex;
    }

    .header-nav .nav-link {
        font-size: 1.25rem;
        padding: 0.75rem 2rem;
        width: 100%;
        text-align: center;
        color: rgba(255, 255, 255, 0.85);
    }

    .header-nav .nav-link:hover,
    .header-nav .nav-link-active {
        color: white;
        background: rgba(255, 255, 255, 0.15);
    }

    .user-header {
        font-size: 0.8rem;
    }

    .user-header .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Government Form Replica Styles */
.gov-form {
    background: white;
    font-size: 13px;
    line-height: 1.5;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
}

.gov-page {
    position: relative;
    padding: 24px 30px 40px;
    margin-bottom: 1.5rem;
    border: 1px solid #bbb;
    background: white;
    page-break-after: always;
    page-break-inside: avoid;
}

.gov-page:last-child {
    page-break-after: auto;
}

.gov-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.gov-page-header-left h2 {
    font-size: 1.1rem;
    margin: 0;
    color: #000;
}

.gov-page-header-left p {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
}

.gov-page-header-right {
    text-align: right;
    font-size: 0.7rem;
    color: #666;
    line-height: 1.4;
}

.gov-section-bar {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.75rem;
    border: 1px solid #999;
    overflow: hidden;
}

.gov-section-num {
    background: #333;
    color: white;
    padding: 0.4rem 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.gov-section-label {
    background: #e5e5e5;
    padding: 0.4rem 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
    display: flex;
    align-items: center;
}

.gov-help-box {
    float: right;
    width: 160px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 0.5rem;
    font-size: 0.7rem;
    color: #555;
    margin: 0 0 0.5rem 1rem;
    line-height: 1.4;
}

.gov-help-box strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.gov-intro-text {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.gov-intro-text strong {
    color: #000;
}

.gov-field-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.gov-field-label {
    font-size: 0.78rem;
    color: #333;
    min-width: 140px;
    padding-top: 4px;
    flex-shrink: 0;
}

.gov-field-input {
    flex: 1;
    border: 1px solid #888;
    min-height: 26px;
    padding: 3px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    background: #fcfcfc;
    color: #000;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gov-field-input.multiline {
    min-height: 50px;
    white-space: pre-wrap;
    line-height: 1.4;
}

.gov-field-input.large-box {
    min-height: 100px;
}

.gov-date-fields {
    display: flex;
    gap: 2px;
    align-items: center;
}

.gov-date-box {
    width: 26px;
    height: 26px;
    border: 1px solid #888;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #fcfcfc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.gov-date-label {
    font-size: 0.65rem;
    color: #666;
    margin: 0 4px;
    text-transform: capitalize;
}

.gov-tick-box {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.4rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.gov-tick {
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.gov-tick.checked {
    background: #e0e0e0;
}

.gov-tick-text {
    flex: 1;
}

.gov-option-block {
    border: 1px solid #ccc;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
    position: relative;
}

.gov-option-block.selected {
    border: 2px solid #333;
    background: #f8f8f0;
}

.gov-option-block p {
    margin: 0.25rem 0;
}

.gov-signature-box {
    border-bottom: 1px solid #333;
    height: 45px;
    margin: 0.5rem 0;
}

.gov-witness-block {
    border: 1px solid #ccc;
    padding: 0.75rem;
    margin-top: 0.75rem;
    background: #fafafa;
}

.gov-witness-block h4 {
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.gov-stamp-box {
    border: 2px solid #333;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.78rem;
    color: #555;
    font-style: italic;
    margin-top: 1rem;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gov-page-num {
    text-align: center;
    font-size: 0.75rem;
    color: #333;
    margin-top: 0.75rem;
    font-weight: 700;
}

.gov-page-footer {
    font-size: 0.65rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.gov-opg-box {
    border: 1px solid #999;
    padding: 0.75rem;
    margin-top: 0.75rem;
    background: #f8f8f8;
    font-size: 0.75rem;
}

.gov-opg-box p {
    margin: 0.25rem 0;
    font-size: 0.75rem;
    color: #555;
}

.gov-attorney-block {
    border: 1px solid #ccc;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fefefe;
}

.gov-attorney-block h4 {
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
}

.gov-legal-text {
    font-size: 0.78rem;
    line-height: 1.6;
    color: #333;
}

.gov-legal-text ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.gov-legal-text li {
    margin-bottom: 0.4rem;
}

.gov-legal-text ul {
    padding-left: 1.25rem;
    margin: 0.25rem 0;
}

.gov-preferences-box {
    border: 1px solid #888;
    min-height: 100px;
    padding: 0.75rem;
    font-size: 0.82rem;
    white-space: pre-wrap;
    background: #fcfcfc;
    margin-bottom: 0.75rem;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.gov-instructions-box {
    border: 1px solid #888;
    min-height: 100px;
    padding: 0.75rem;
    font-size: 0.82rem;
    white-space: pre-wrap;
    background: #fcfcfc;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.gov-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0.75rem 0;
}

.gov-form-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #999;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.gov-form-footer p {
    margin: 0.25rem 0;
}

.gov-section-content {
    padding: 0.75rem;
}

/* Section 11 copies */
.gov-s11-copy {
    border: 1px solid #bbb;
    padding: 20px 24px 30px;
    margin-bottom: 1rem;
    page-break-after: always;
    page-break-inside: avoid;
}

.gov-s11-copy:last-child {
    page-break-after: auto;
}

/* Document Tabs */
.doc-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.doc-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-family: inherit;
}

.doc-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.doc-tab:hover {
    color: var(--primary);
}

/* LPA Document */
.lpa-document {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    line-height: 1.8;
}

.lpa-document h1 {
    text-align: center;
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.lpa-document h2 {
    color: var(--primary);
    font-size: 1.125rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.lpa-document h3 {
    color: var(--primary-light);
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
}

.lpa-document p {
    margin-bottom: 0.75rem;
}

.lpa-document table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.lpa-document th, .lpa-document td {
    border: 1px solid var(--border);
    padding: 0.5rem;
    text-align: left;
}

.lpa-document th {
    background: #f8fafc;
    font-weight: 600;
}

/* Gov Form Preview Modal */
.gov-preview-content {
    max-width: 800px;
    max-height: 90vh;
}

.gov-form-section {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.gov-form-section:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.gov-section-number {
    background: var(--primary);
    color: white;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.gov-section-title {
    font-weight: 600;
    padding: 0.5rem;
    background: #f8fafc;
    font-size: 0.95rem;
    color: var(--primary);
}

/* Print Styles for LPA */
@media print {
    .lpa-document, .gov-form {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .gov-form-section {
        page-break-inside: avoid;
    }

    .doc-tabs {
        display: none !important;
    }

    .toolbar {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .header .home-container > div {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .will-document, .lpa-document {
        padding: 1.5rem;
    }

    .nav-buttons {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

    .btn-nav-next {
        margin-left: 0;
    }

    .doc-tabs {
        flex-direction: column;
    }

    .gov-field {
        flex-direction: column;
        gap: 0.25rem;
    }

    .gov-field label {
        flex: none;
    }
}

/* ========================================
   Landing Page Styles
   ======================================== */

.home-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.home-hero h1 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.home-hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0 3rem;
}

@media (max-width: 640px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    .home-hero h1 {
        font-size: 1.75rem;
    }
}

.home-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.home-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.home-card-islamic .home-card-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--accent);
}

.home-card-standard .home-card-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.home-card h3 {
    font-size: 1.25rem;
    margin: 0;
}

.home-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.home-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.home-card-islamic .home-card-badge {
    background: #dcfce7;
    color: #166534;
}

.home-card-standard .home-card-badge {
    background: #dbeafe;
    color: #1e40af;
}

.home-card-islamic {
    border-color: #bbf7d0;
}

.home-card-islamic:hover {
    border-color: var(--accent);
}

.home-card-standard {
    border-color: #bfdbfe;
}

.home-card-standard:hover {
    border-color: #2563eb;
}

.home-card-arrow {
    color: var(--text-light);
    transition: transform 0.3s;
}

.home-card:hover .home-card-arrow {
    transform: translateX(4px);
}

/* ========================================
   Admin Panel Styles
   ======================================== */

.admin-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-layout h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.admin-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section h3 {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.admin-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-row label {
    min-width: 160px;
    font-weight: 500;
    color: var(--text);
}

.admin-row input[type="text"],
.admin-row input[type="email"],
.admin-row input[type="url"],
.admin-row input[type="tel"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-row input[type="color"] {
    width: 50px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 2px;
}

.admin-color-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.admin-color-hex {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-light);
    min-width: 70px;
}

/* Toggle Switch */
.toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .toggle-grid {
        grid-template-columns: 1fr;
    }
    .admin-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-row label {
        min-width: auto;
    }
    .admin-row input[type="text"],
    .admin-row input[type="email"],
    .admin-row input[type="url"],
    .admin-row input[type="tel"] {
        width: 100%;
    }
}

.toggle-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.toggle-card.enabled {
    border-color: var(--accent);
    background: #f0fdf4;
}

.toggle-card-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.toggle-card-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Admin Preview */
.admin-preview {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.admin-preview h4 {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.preview-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-save-bar {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    z-index: 50;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.admin-save-bar .btn {
    min-width: 200px;
}

/* Logo preview */
.logo-preview {
    width: 40px;
    height: 40px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ========================================
   Auth / Login / Signup Styles
   ======================================== */

.auth-container {
    max-width: 420px;
    margin: 3rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
}

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

.auth-logo h2 {
    color: var(--primary);
    margin: 0.5rem 0 0.25rem;
    font-size: 1.5rem;
}

.auth-logo p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-family: inherit;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-field label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.auth-field input,
.auth-field select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--surface);
}

.auth-field input:focus,
.auth-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.auth-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

.auth-success {
    background: #f0fdf4;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    border: 1px solid #bbf7d0;
}

.auth-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.auth-forgot-link {
    text-align: center;
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
}

.auth-forgot-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

@media (max-width: 480px) {
    .auth-container {
        margin: 1.5rem auto;
        padding: 1.5rem 1.25rem;
    }
}
