*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #eef3ff 0%, #eff6ff 100%);
    color: #1f2937;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    border-radius: 28px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.12);
}

.auth-left,
.auth-right {
    padding: 48px;
}

.auth-left {
    background: #ffffff;
}

.brand-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    object-fit: contain;
}

.brand-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.brand-text {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.form-header h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.form-header p {
    margin: 0;
    max-width: 480px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
}

.register-form {
    margin-top: 32px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    min-width: 0;
}

label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 16px 18px;
    background: #f9fafb;
    color: #111827;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background: #ffffff;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

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

.checkbox-row label {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
}

.checkbox-row a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

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

button[type="submit"] {
    width: 100%;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
}

.sign-in-text {
    margin-top: 18px;
    font-size: 15px;
    color: #6b7280;
}

.sign-in-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-right {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.auth-right::after {
    content: '';
    position: absolute;
    bottom: -32px;
    left: -28px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 36px;
    line-height: 1.05;
    margin: 0 0 18px;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list {
    position: relative;
    z-index: 1;
    margin-top: 36px;
    display: grid;
    gap: 18px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 18px 20px;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 18px;
}

.feature-item h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.feature-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    padding: 40px 20px;
    overflow: auto;
}

.modal-content {
    width: min(720px, 100%);
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.18);
    position: relative;
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 28px;
    color: #6b7280;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 28px;
    color: #111827;
}

.modal-update {
    color: #6b7280;
    margin-top: -8px;
    margin-bottom: 24px;
}

.modal-content h3 {
    margin-top: 28px;
    font-size: 18px;
    color: #1f2937;
}

.modal-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
}

.modal-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.agree-btn,
.disagree-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.agree-btn {
    background: #2563eb;
    color: #ffffff;
}

.disagree-btn {
    background: #e5e7eb;
    color: #111827;
}

@media (max-width: 960px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-right {
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }
}

@media (max-width: 680px) {
    .auth-left,
    .auth-right {
        padding: 28px 20px;
    }

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

    .auth-right::before,
    .auth-right::after {
        display: none;
    }

    .hero-content h2 {
        font-size: 28px;
    }
}

/* Custom refactored styles from inline attributes */
.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.m-0 {
    margin: 0 !important;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.mt-10 {
    margin-top: 10px !important;
}
.mb-8 {
    margin-bottom: 8px !important;
}
.mb-12 {
    margin-bottom: 12px !important;
}
.mb-24 {
    margin-bottom: 24px !important;
}
.forgot-password-link-style {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.checkbox-row-flex {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.show-pass-checkbox {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    cursor: pointer !important;
}
.show-pass-label {
    font-size: 14px !important;
    font-weight: normal !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    margin: 0 !important;
    user-select: none !important;
}
.forgot-modal-width {
    width: min(480px, 100%) !important;
}
.close-btn-cursor {
    cursor: pointer !important;
}
.modal-btn-submit-style {
    width: 100%;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 20px;
    cursor: pointer;
}
.verify-code-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 24px;
    font-weight: bold;
}
.flex-between-center-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.timer-text-color {
    color: #6b7280;
}
.resend-code-btn-disabled {
    background: none;
    border: none;
    color: #9ca3af;
    font-weight: 600;
    cursor: not-allowed;
    padding: 0;
}