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

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f5f7;
}

/* ── Layout ── */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Left panel ── */
.left-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
    padding: 3rem 2rem;
}

.left-panel-inner {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.left-panel img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 12px;
    object-fit: contain;
}

.quote-block {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    color: #fff;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    backdrop-filter: blur(4px);
}

.quote-block::before {
    content: '\201C';
    display: block;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Right panel ── */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #f4f5f7;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 2.5rem 2rem;
}

.login-logo {
    display: block;
    max-width: 160px;
    margin: 0 auto 2rem;
}

/* ── Form elements ── */
.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.input-group {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    height: 48px;
    font-size: 0.9375rem;
    padding: 0 1rem;
    background: transparent;
    color: #111827;
}

.input-group .form-control::placeholder {
    color: #9ca3af;
}

.input-group .btn-icon {
    background: transparent;
    border: none;
    padding: 0 1rem;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.input-group .btn-icon:hover {
    color: #7c3aed;
}

.form-check-input:checked {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.form-check-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.btn-login {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-login:hover {
    background: #6d28d9;
}

.btn-login:active {
    transform: scale(0.98);
}

.links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.links-row a {
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.links-row .divider {
    width: 1px;
    height: 14px;
    background: #e5e7eb;
}

.footer-note {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* ── Modal ── */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f3f4f6;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

.modal-body .form-control {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    height: 44px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-body .form-control:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.modal-body label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.btn-modal-close {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-modal-submit {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-modal-submit:hover {
    background: #6d28d9;
}

/* ── Step indicator ── */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background 0.3s;
}

.step-dot.active {
    background: #7c3aed;
}

.step-dot.done {
    background: #a78bfa;
}

/* ── Responsive: stack on small screens ── */
@media (max-width: 991.98px) {
    .page-wrapper {
        flex-direction: column;
    }

    .left-panel {
        padding: 2rem 1.25rem;
        min-height: 280px;
    }

    .left-panel-inner {
        max-width: 560px;
    }

    .right-panel {
        flex: none;
        padding: 1.5rem 1rem;
    }

    .login-card {
        max-width: 480px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .left-panel {
        min-height: 220px;
        padding: 1.5rem 1rem;
    }

    .login-card {
        border-radius: 16px;
        padding: 1.75rem 1.25rem;
    }

    .login-logo {
        max-width: 130px;
    }

    .quote-block {
        font-size: 1rem;
        padding: 1.5rem 1.25rem;
    }

    .btn-login {
        padding: 0.6rem 1.25rem;
        font-size: 0.875rem;
    }
}