/* =========================================================
   1. ROOT VARIABLES
========================================================= */

:root {
    --navy: var(--brand-primary);
    --navy-light: var(--brand-primary-light);
    --navy-dark: var(--brand-primary-dark);
    --navy-darker: var(--brand-primary-dark);

    --gold: var(--brand-secondary);
    --gold-light: var(--brand-secondary-light);
    --gold-dark: var(--brand-secondary-dark);
    --gold-soft: var(--brand-secondary-soft);

    --white: #ffffff;
    --background: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #f8f9fb;

    --text: var(--brand-text);
    --text-secondary: var(--brand-text-secondary);
    --text-light: #98a2b3;

    --border: var(--brand-border);
    --border-dark: #d0d5dd;

    --success: var(--brand-success);
    --success-soft: #eaf8f2;

    --danger: var(--brand-danger);
    --danger-soft: #fff0ee;

    --warning: var(--brand-warning);
    --warning-soft: #fff7e8;

    --info: var(--brand-info);
    --info-soft: #edf4ff;

    --shadow-xs: 0 2px 8px rgba(10, 20, 40, 0.04);
    --shadow-sm: 0 10px 28px rgba(10, 20, 40, 0.07);
    --shadow-md: 0 18px 50px rgba(10, 20, 40, 0.11);
    --shadow-lg: 0 35px 90px rgba(10, 20, 40, 0.16);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --container: 1220px;

    --transition-fast: 160ms ease;
    --transition: 240ms ease;
    --transition-slow: 450ms ease;
}


/* =========================================================
   2. GLOBAL RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: var(--background);
    font-family: "Alexandria", sans-serif;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

input,
select,
textarea {
    width: 100%;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

::selection {
    color: var(--navy-dark);
    background: var(--gold-light);
}

:focus-visible {
    outline: 3px solid rgba(198, 146, 20, 0.30);
    outline-offset: 3px;
}


/* =========================================================
   3. UTILITIES
========================================================= */

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.text-gold {
    color: var(--gold);
}

.hidden {
    display: none !important;
}


/* =========================================================
   4. BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.20);
}

.btn-primary:hover:not(:disabled) {
    background: var(--navy-light);
    box-shadow: 0 14px 30px rgba(20, 33, 61, 0.26);
}

.btn-gold {
    color: var(--navy-dark);
    background: var(--gold);
    box-shadow: 0 10px 25px rgba(198, 146, 20, 0.22);
}

.btn-gold:hover:not(:disabled) {
    background: var(--gold-light);
    box-shadow: 0 14px 30px rgba(198, 146, 20, 0.30);
}

.btn-outline {
    color: var(--navy);
    background: transparent;
    border-color: var(--border-dark);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
}

.btn-outline-light {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline-light:hover {
    color: var(--navy-dark);
    background: var(--white);
    border-color: var(--white);
}

.btn-sm {
    min-height: 43px;
    padding: 9px 17px;
    border-radius: 11px;
    font-size: 0.82rem;
}

.btn-lg {
    min-height: 57px;
    padding: 14px 26px;
    border-radius: 15px;
    font-size: 0.94rem;
}

.btn-full {
    width: 100%;
}

.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.36);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.btn.loading .button-loader {
    display: inline-block;
}

.btn.loading .button-text,
.btn.loading .button-icon {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   5. TOP BAR
========================================================= */

.topbar {
    position: relative;
    z-index: 1100;
    color: rgba(255, 255, 255, 0.82);
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.75rem;
}

.topbar-content {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
}

.topbar-message,
.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar i {
    color: var(--gold-light);
}

.topbar-link {
    transition: color var(--transition-fast);
}

.topbar-link:hover {
    color: var(--gold-light);
}


/* =========================================================
   6. NAVBAR
========================================================= */

.navbar {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: 82px;
    align-items: center;
    gap: 34px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    color: var(--navy-dark);
    background: var(--gold);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(198, 146, 20, 0.18);
}

.logo-mark::before {
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(9, 20, 38, 0.18);
    border-radius: 9px;
    content: "";
}

.logo-mark i {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-name {
    color: var(--navy-dark);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-tagline {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.58rem;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-link {
    position: relative;
    padding: 10px 14px;
    color: #3c4658;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.nav-link::after {
    position: absolute;
    right: 14px;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 5px;
    content: "";
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--navy);
    background: rgba(20, 33, 61, 0.045);
}

.nav-link:hover::after {
    width: 24px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    color: var(--navy);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.15rem;
}


/* =========================================================
   7. MOBILE MENU
========================================================= */

.mobile-overlay {
    position: fixed;
    z-index: 1998;
    inset: 0;
    visibility: hidden;
    background: rgba(5, 13, 25, 0.62);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.mobile-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1999;
    width: min(88%, 370px);
    height: 100dvh;
    overflow-y: auto;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform var(--transition-slow);
}

.mobile-drawer.active {
    transform: translateX(0);
}

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

.drawer-close {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--navy);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 11px;
}

.drawer-body {
    padding: 18px;
}

.drawer-nav {
    display: grid;
    gap: 5px;
}

.drawer-link {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 14px;
    color: var(--text);
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 600;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.drawer-link:hover {
    color: var(--navy);
    background: var(--gold-soft);
}

.drawer-link i {
    color: var(--gold-dark);
    font-size: 0.78rem;
}

.drawer-divider {
    height: 1px;
    margin-block: 18px;
    background: var(--border);
}

.drawer-actions {
    display: grid;
    gap: 10px;
}

.drawer-info {
    margin-top: 22px;
    padding: 16px;
    color: var(--text-secondary);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.76rem;
    line-height: 1.8;
}


/* =========================================================
   8. LOGIN PAGE
========================================================= */

.login-page {
    position: relative;
    min-height: calc(100vh - 122px);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 5% 10%,
            rgba(198, 146, 20, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 90%,
            rgba(20, 33, 61, 0.08),
            transparent 30%
        ),
        var(--background);
}

.login-page::before {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(20, 33, 61, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 33, 61, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    content: "";
}

.login-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(420px, 0.88fr) minmax(0, 1.12fr);
    min-height: calc(100vh - 122px);
    align-items: stretch;
    gap: 0;
    padding-block: 42px;
}


/* =========================================================
   9. LOGIN FORM PANEL
========================================================= */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 50px 25px 20px;
}

.login-card {
    width: min(100%, 520px);
    padding: 39px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.login-card-header {
    margin-bottom: 28px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 12px;
    color: var(--gold-dark);
    background: var(--gold-soft);
    border: 1px solid rgba(198, 146, 20, 0.22);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
}

.login-badge::before {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    content: "";
}

.login-title {
    display: grid;
    gap: 18px;
    margin-bottom: 9px;
    color: var(--navy-dark);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.login-title > span {
    display: block;
    min-width: 0;
    line-height: inherit;
}

.login-description {
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.9;
}


/* =========================================================
   10. ACCOUNT TYPE SWITCHER
========================================================= */

.account-type-switcher {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 25px;
    padding: 7px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.account-type-button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    color: var(--text-secondary);
    background: transparent;
    border-radius: 11px;
    font-size: 0.73rem;
    font-weight: 700;
    transition:
        color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.account-type-button:hover {
    color: var(--navy);
}

.account-type-button.active {
    color: var(--navy-dark);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.account-type-button.active i {
    color: var(--gold-dark);
}


/* =========================================================
   11. ALERTS
========================================================= */

.form-alert {
    display: none;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 15px 16px;
    border-radius: 13px;
    font-size: 0.69rem;
    line-height: 1.8;
}

.form-alert.visible {
    display: flex;
}

.form-alert.error {
    color: #922b21;
    background: var(--danger-soft);
    border: 1px solid rgba(217, 45, 32, 0.18);
}

.form-alert.success {
    color: #126440;
    background: var(--success-soft);
    border: 1px solid rgba(22, 138, 91, 0.18);
}

.form-alert.warning {
    color: #8a4a08;
    background: var(--warning-soft);
    border: 1px solid rgba(220, 124, 18, 0.18);
}

.form-alert.info {
    color: #17478f;
    background: var(--info-soft);
    border: 1px solid rgba(39, 100, 200, 0.18);
}

.form-alert i {
    margin-top: 4px;
    flex-shrink: 0;
}

.login-feedback {
    display: none;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 20px;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 29, 53, 0.05);
}

.login-feedback.visible {
    display: grid;
}

.login-feedback-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1rem;
}

.login-feedback-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.login-feedback-content strong {
    color: inherit;
    font-size: 0.76rem;
    font-weight: 800;
}

.login-feedback-content > span {
    font-size: 0.66rem;
    line-height: 1.75;
}

.login-feedback--error,
.login-feedback--danger {
    color: #9f241d;
    background: #fff1f0;
    border-color: #f2c4c0;
}

.login-feedback--error .login-feedback-icon,
.login-feedback--danger .login-feedback-icon {
    color: #c52e24;
    background: #ffe0dd;
}

.login-feedback--warning {
    color: #805000;
    background: #fff8e4;
    border-color: #efd99b;
}

.login-feedback--warning .login-feedback-icon {
    color: #a56b00;
    background: #ffedb5;
}

.login-feedback--success {
    color: #0b6845;
    background: #eaf8f2;
    border-color: #b8e3d2;
}

.login-feedback--success .login-feedback-icon {
    color: #087a50;
    background: #cef0e2;
}

.login-feedback--info {
    color: #174b85;
    background: #edf5ff;
    border-color: #c6dcf4;
}

.login-feedback--info .login-feedback-icon {
    color: #2467ad;
    background: #dbeaff;
}


/* =========================================================
   12. FORM
========================================================= */

.login-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--navy-dark);
    font-size: 0.73rem;
    font-weight: 700;
}

.required-mark {
    color: var(--danger);
}

.field-hint {
    color: var(--text-light);
    font-size: 0.59rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    z-index: 2;
    color: var(--text-light);
    font-size: 0.86rem;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.form-control {
    min-height: 53px;
    padding: 12px 46px 12px 48px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border-dark);
    border-radius: 13px;
    font-size: 0.78rem;
    outline: none;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.form-control::placeholder {
    color: #a6adba;
}

.form-control:hover {
    border-color: #b8c0cb;
}

.form-control:focus {
    background: #fffdf8;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(198, 146, 20, 0.11);
}

.input-wrapper:focus-within .input-icon {
    color: var(--gold-dark);
}

.form-control.is-invalid {
    background: var(--danger-soft);
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.07);
}

.form-control.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(22, 138, 91, 0.07);
}

.password-toggle {
    position: absolute;
    top: 50%;
    left: 10px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--text-light);
    background: transparent;
    border-radius: 9px;
    transform: translateY(-50%);
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--navy);
    background: var(--surface-soft);
}

.field-message {
    display: none;
    align-items: center;
    gap: 6px;
    color: var(--danger);
    font-size: 0.61rem;
    line-height: 1.65;
}

.field-message.visible {
    display: flex;
}


/* =========================================================
   13. FORM OPTIONS
========================================================= */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 0.66rem;
    cursor: pointer;
}

.custom-checkbox {
    position: relative;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.custom-checkbox input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.checkbox-box {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    color: transparent;
    background: var(--white);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    font-size: 0.66rem;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.custom-checkbox input:checked + .checkbox-box {
    color: var(--navy-dark);
    background: var(--gold);
    border-color: var(--gold);
}

.forgot-link {
    color: var(--gold-dark);
    font-size: 0.66rem;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--navy);
}


/* =========================================================
   14. FORM DIVIDER
========================================================= */

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.61rem;
}

.form-divider::before,
.form-divider::after {
    height: 1px;
    flex: 1;
    background: var(--border);
    content: "";
}


/* =========================================================
   16. REGISTER FOOTER
========================================================= */

.register-footer {
    margin-top: 25px;
    padding-top: 23px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.register-footer p {
    color: var(--text-secondary);
    font-size: 0.68rem;
}

.register-footer a {
    color: var(--gold-dark);
    font-weight: 800;
}

.register-footer a:hover {
    color: var(--navy);
}


/* =========================================================
   17. VISUAL PANEL
========================================================= */

.visual-panel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(
            circle at 15% 85%,
            rgba(198, 146, 20, 0.22),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(46, 69, 116, 0.34),
            transparent 32%
        ),
        linear-gradient(145deg, var(--navy), var(--navy-dark));
    border-radius: 34px;
    box-shadow: var(--shadow-lg);
}

.visual-panel::before {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    content: "";
}

.visual-panel::after {
    position: absolute;
    top: -160px;
    left: -160px;
    width: 450px;
    height: 450px;
    border: 70px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;
    content: "";
}

.visual-content {
    position: relative;
    z-index: 3;
    display: flex;
    height: 100%;
    min-height: 680px;
    flex-direction: column;
    justify-content: space-between;
    padding: 58px;
}

.visual-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    color: var(--gold-light);
    background: rgba(198, 146, 20, 0.10);
    border: 1px solid rgba(228, 184, 62, 0.23);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
}

.visual-badge::before {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    content: "";
}

.visual-heading {
    display: grid;
    gap: 16px;
    max-width: 620px;
    margin-top: 24px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.55rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.visual-heading > span {
    display: block;
    min-width: 0;
    line-height: inherit;
}

.visual-description {
    max-width: 610px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
    line-height: 2;
}


/* =========================================================
   18. VISUAL JOURNEY
========================================================= */

.journey-visual {
    position: relative;
    min-height: 270px;
    margin-block: 20px;
}

.journey-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 124px;
    height: 124px;
    place-items: center;
    color: var(--navy-dark);
    background: var(--white);
    border: 12px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.24);
    transform: translate(-50%, -50%);
}

.journey-center::before,
.journey-center::after {
    position: absolute;
    inset: -44px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    content: "";
}

.journey-center::after {
    inset: -88px;
    border-color: rgba(198, 146, 20, 0.16);
}

.journey-center-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.journey-center-logo {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.journey-card {
    position: absolute;
    z-index: 4;
    display: flex;
    min-width: 170px;
    align-items: center;
    gap: 11px;
    padding: 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    animation: floatingCard 4.6s ease-in-out infinite;
}

.journey-card.store {
    top: 0;
    right: 0;
}

.journey-card.factory {
    bottom: 0;
    left: 0;
    animation-delay: -1.5s;
}

.journey-card.order {
    right: -8px;
    bottom: 20px;
    animation-delay: -2.8s;
}

.journey-card-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    place-items: center;
    color: var(--navy);
    background: var(--gold-soft);
    border-radius: 11px;
}

.journey-card.factory .journey-card-icon {
    color: var(--white);
    background: var(--navy);
}

.journey-card.order .journey-card-icon {
    color: var(--success);
    background: var(--success-soft);
}

.journey-card strong {
    display: block;
    color: var(--navy-dark);
    font-size: 0.66rem;
}

.journey-card span {
    display: block;
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 0.54rem;
}

@keyframes floatingCard {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


/* =========================================================
   19. SECURITY POINTS
========================================================= */

.security-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.security-point {
    padding: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.security-point i {
    display: grid;
    width: 37px;
    height: 37px;
    margin-bottom: 11px;
    place-items: center;
    color: var(--navy-dark);
    background: var(--gold);
    border-radius: 11px;
}

.security-point strong {
    display: block;
    margin-bottom: 4px;
    color: var(--white);
    font-size: 0.67rem;
}

.security-point span {
    display: block;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.56rem;
    line-height: 1.65;
}


/* =========================================================
   20. SUCCESS MODAL
========================================================= */

.modal-overlay {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    visibility: hidden;
    place-items: center;
    padding: 20px;
    background: rgba(5, 13, 25, 0.72);
    opacity: 0;
    backdrop-filter: blur(7px);
    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.success-modal {
    width: min(100%, 470px);
    padding: 38px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition);
}

.modal-overlay.active .success-modal {
    transform: translateY(0) scale(1);
}

.success-modal-icon {
    position: relative;
    display: grid;
    width: 88px;
    height: 88px;
    margin: 0 auto 23px;
    place-items: center;
    color: var(--success);
    background: var(--success-soft);
    border-radius: 26px;
    font-size: 2rem;
}

.success-modal-icon::after {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(22, 138, 91, 0.15);
    border-radius: 31px;
    content: "";
}

.success-modal h2 {
    margin-bottom: 10px;
    color: var(--navy-dark);
    font-size: 1.4rem;
    font-weight: 800;
}

.success-modal p {
    margin-bottom: 23px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.9;
}

.redirect-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 14px;
    color: var(--text-secondary);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 13px;
    font-size: 0.68rem;
}

.redirect-box i {
    color: var(--gold-dark);
}

.redirect-box strong {
    color: var(--navy-dark);
}


/* =========================================================
   21. LOGIN FOOTER
========================================================= */

.login-footer {
    padding-block: 25px;
    color: var(--text-secondary);
    background: var(--white);
    border-top: 1px solid var(--border);
}

.login-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.65rem;
}

.login-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.login-footer-links a {
    transition: color var(--transition-fast);
}

.login-footer-links a:hover {
    color: var(--gold-dark);
}


/* =========================================================
   22. RESPONSIVE - LARGE TABLET
========================================================= */

@media (max-width: 1120px) {
    .navbar-content {
        gap: 18px;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-link {
        padding-inline: 10px;
        font-size: 0.78rem;
    }

    .login-layout {
        grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.1fr);
    }

    .login-panel {
        padding-right: 25px;
    }

    .visual-content {
        padding: 45px;
    }

    .security-point {
        padding: 13px;
    }
}


/* =========================================================
   23. RESPONSIVE - TABLET
========================================================= */

@media (max-width: 950px) {
    .topbar {
        display: none;
    }

    .navbar-content {
        min-height: 74px;
        grid-template-columns: auto 1fr;
    }

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: grid;
        justify-self: end;
        place-items: center;
    }

    .login-page {
        min-height: auto;
    }

    .login-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-block: 32px 60px;
    }

    .login-panel {
        order: 1;
        padding: 0;
    }

    .visual-panel {
        order: 2;
        min-height: auto;
        margin-top: 28px;
    }

    .visual-content {
        min-height: 620px;
    }

    .login-card {
        width: min(100%, 620px);
    }
}


/* =========================================================
   24. RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .logo-mark {
        width: 42px;
        height: 42px;
    }

    .logo-name {
        font-size: 1.14rem;
    }

    .logo-tagline {
        display: none;
    }

    .login-layout {
        padding-block: 20px 45px;
    }

    .login-card {
        padding: 27px 21px;
        border-radius: 22px;
    }

    .login-title {
        gap: 12px;
        font-size: 1.62rem !important;
        line-height: 1.35 !important;
    }

    .account-type-switcher {
        grid-template-columns: 1fr;
    }

    .account-type-button {
        justify-content: flex-start;
        padding-inline: 16px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .visual-panel {
        border-radius: 24px;
    }

    .visual-content {
        min-height: 570px;
        padding: 34px 23px;
    }

    .visual-heading {
        gap: 10px;
        font-size: 2rem;
        line-height: 1.4;
    }

    .visual-description {
        font-size: 0.74rem;
    }

    .journey-visual {
        min-height: 230px;
    }

    .journey-center {
        width: 100px;
        height: 100px;
        border-radius: 28px;
    }

    .journey-center-logo {
        width: 76px;
        height: 76px;
    }

    .journey-center::before {
        inset: -34px;
    }

    .journey-center::after {
        inset: -65px;
    }

    .journey-card {
        min-width: 138px;
        padding: 10px;
    }

    .journey-card.store {
        right: -2px;
    }

    .journey-card.factory {
        left: -2px;
    }

    .journey-card.order {
        right: -2px;
    }

    .journey-card-icon {
        width: 34px;
        height: 34px;
    }

    .journey-card strong {
        font-size: 0.6rem;
    }

    .journey-card span {
        font-size: 0.49rem;
    }

    .security-points {
        grid-template-columns: 1fr;
    }

    .security-point {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .security-point i {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .login-footer-content {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .login-footer-links {
        justify-content: center;
    }

    .success-modal {
        padding: 30px 22px;
    }
}


/* =========================================================
   25. VERY SMALL MOBILE
========================================================= */

@media (max-width: 430px) {
    .journey-card.order {
        display: none;
    }

    .login-card {
        padding-inline: 18px;
    }

    .form-control {
        font-size: 0.72rem;
    }
}


/* =========================================================
   26. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
