.auth {
    background: url("/img/hero/beautiful-shot-top-mountain.jpg") center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}

    .auth::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.8);
        pointer-events: none;
        z-index: 0;
    }

.auth-card {
    background-color: var(--light-1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--dark-3);
    padding: 30px;
    width: 450px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

    .auth-card a {
        color: var(--dark-3);
    }

@media (max-width: 800px) {
    .auth-card {
        width: 100%;
        min-height: 100vh;
    }
}

.auth-card .auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.auth-card img {
    height: 55px;
}

.auth-card .google-auth-btn {
    width: 100%;
    padding: 10px 8px;
    background-color: var(--light-2);
    font-size: 15px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
}

.auth-card .digit-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .auth-card .digit-group input {
        border-radius: 15px;
        border: solid 1px var(--dark-1);
        text-align: center;
        display: inline;
        font-size: 20px;
        width: 35px;
    }

/* Register Terms Step Styles */
.register-terms-card {
    width: 90% !important;
    max-width: 900px !important;
    height: auto !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
}

.legal-documents-container {
    flex: 1;
    overflow-y: auto;
    margin: 15px 0 20px 0;
    padding-right: 10px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-1);
}

.legal-documents-container::-webkit-scrollbar {
    width: 8px;
}

.legal-documents-container::-webkit-scrollbar-track {
    background: transparent;
}

.legal-documents-container::-webkit-scrollbar-thumb {
    background: var(--brand-1);
    border-radius: 4px;
}

.legal-documents-container::-webkit-scrollbar-thumb:hover {
    background: var(--brand-2);
}

/* Legal Section Styles */
.legal-section {
    padding: 30px;
    border-bottom: 2px solid var(--border-1);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--brand-1);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legal-subsection {
    margin-bottom: 15px;
}

.legal-subsection h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-1);
    margin-bottom: 12px;
    margin-top: 0;
}

.legal-subsection p {
    color: var(--dark-2);
    line-height: 1.7;
    margin: 8px 0;
    font-size: 0.9rem;
}

/* Legal Contact Block */
.legal-contact-block {
    background: linear-gradient(135deg, rgba(0, 130, 206, 0.08), rgba(0, 50, 97, 0.08));
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--brand-1);
    margin: 12px 0;
}

.legal-contact-block p {
    margin: 5px 0;
    font-size: 0.85rem;
}

.legal-contact-block a {
    color: var(--brand-1);
    text-decoration: none;
    font-weight: 500;
}

.legal-contact-block a:hover {
    color: var(--brand-2);
    text-decoration: underline;
}

/* Legal Table */
.legal-table-wrapper {
    overflow-x: auto;
    margin: 15px 0;
    border-radius: 8px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.legal-table thead {
    background: rgba(0, 130, 206, 0.1);
    border-bottom: 2px solid var(--border-1);
}

.legal-table thead th {
    padding: 10px;
    text-align: left;
    font-weight: 700;
    color: var(--dark-1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.8rem;
}

.legal-table tbody tr {
    border-bottom: 1px solid var(--border-1);
}

.legal-table tbody tr:hover {
    background-color: rgba(0, 130, 206, 0.03);
}

.legal-table tbody td {
    padding: 10px;
    color: var(--dark-2);
    line-height: 1.5;
}

.legal-table tbody td strong {
    color: var(--dark-1);
}

/* Legal Lists */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-list li {
    color: var(--dark-2);
    line-height: 1.6;
    font-size: 0.9rem;
    padding-left: 0;
    margin: 0;
}

.legal-list li strong {
    color: var(--dark-1);
}

/* Legal Checkboxes Sections */
.legal-checkbox-section {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-1);
    background: white;
}

.legal-checkbox-section:last-of-type {
    border-bottom: none;
}

.legal-checkbox-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 15px;
    margin-top: 0;
}

.legal-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.legal-checkbox-item:last-child {
    margin-bottom: 0;
}

.legal-checkbox-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--brand-1);
}

.legal-checkbox-item label {
    flex: 1;
    color: var(--dark-2);
    font-size: 0.9rem;
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
}

.legal-checkbox-item label strong {
    color: var(--dark-1);
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    background: white;
    padding: 20px 30px;
    border-top: 1px solid var(--border-1);
    margin-top: 20px;
}

.legal-documents-container .form-actions {
    background: linear-gradient(135deg, rgba(0, 130, 206, 0.05), rgba(0, 50, 97, 0.05));
    border-top: 2px solid var(--border-1);
    border-radius: 0 0 10px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-terms-card {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        padding: 15px !important;
    }

    .legal-section {
        padding: 20px;
    }

    .legal-section-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .legal-subsection h3 {
        font-size: 1rem;
    }

    .legal-subsection p {
        font-size: 0.85rem;
    }

    .legal-checkbox-section {
        padding: 15px 20px;
    }

    .legal-table {
        font-size: 0.8rem;
    }

    .legal-table thead th,
    .legal-table tbody td {
        padding: 8px;
    }

    .form-actions {
        padding: 15px 20px;
    }
}

.register-terms-title {
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
    line-height: 1.45;
}

.register-terms-open-btn {
    width: 100%;
    border: 1px solid #b9daff;
    border-radius: 10px;
    background: #eef7ff;
    color: #005fa8;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.register-terms-open-btn:hover {
    background: #e6f3ff;
}

.register-terms-open-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.register-terms-open-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.register-terms-open-main {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a67b2;
}

.register-terms-open-sub {
    font-size: 0.95rem;
    color: #5b6f85;
}

.register-terms-open-arrow {
    font-size: 1.3rem;
    color: #0a67b2;
}

.legal-modal-body {
    background-color: #fff;
}

.legal-modal-pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1f1f1f;
}

@media (max-width: 992px) {
    .register-terms-open-main {
        font-size: 1rem;
    }

    .register-terms-open-sub {
        font-size: 0.85rem;
    }
}
