/* =========================================================
   DIRLIKLI SIGORTA - ACCOUNT
   ========================================================= */


/* =========================================================
   ACCOUNT LAYOUT
   ========================================================= */

.account-page-hero {
    padding-bottom: 56px;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.account-content {
    min-width: 0;
    display: grid;
    gap: 24px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.account-sidebar {
    position: sticky;
    top: 120px;
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 20px;

    background: #ffffff;

    box-shadow: var(--shadow-soft);
}

.account-sidebar-user {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 22px;

    border-bottom: 1px solid var(--line);
}

.account-sidebar-user > div:last-child {
    min-width: 0;

    display: grid;
    gap: 4px;
}

.account-sidebar-user strong {
    overflow: hidden;

    color: var(--ink);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-sidebar-user span {
    overflow: hidden;

    color: var(--text);

    font-size: 12px;
    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    border-radius: 14px;

    background: rgba(0, 168, 181, 0.1);
    color: var(--brand);

    font-size: 18px;
    font-weight: 800;
}

.account-menu {
    display: grid;

    padding: 10px;
}

.account-menu a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 10px 14px;

    border-radius: 12px;

    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.account-menu a:hover {
    background: var(--surface-alt);
    color: var(--ink);
}

.account-menu a.active {
    background: rgba(0, 168, 181, 0.1);
    color: var(--brand);
}

.account-menu a.active::before {
    content: "";

    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;

    width: 3px;

    border-radius: 999px;

    background: var(--brand);
}

.account-logout-form {
    padding: 10px;

    border-top: 1px solid var(--line);
}

.account-logout-button {
    width: 100%;
    min-height: 44px;

    padding: 10px 14px;

    border: 0;
    border-radius: 12px;

    background: transparent;
    color: #b42318;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.account-logout-button:hover {
    background: #fff1f0;
    color: #912018;
}


/* =========================================================
   AUTH PAGE
   ========================================================= */

.auth-page {
    position: relative;

    display: flex;
    align-items: center;

    min-height: calc(100vh - 150px);

    padding: 72px 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 168, 181, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(30, 115, 98, 0.08),
            transparent 30%
        ),
        var(--surface-alt);
}

.auth-page-inner {
    position: relative;
    z-index: 1;
}


/* =========================================================
   AUTH SHELL
   ========================================================= */

.auth-shell {
    position: relative;

    width: 100%;
    max-width: 1040px;

    height: 650px;
    min-height: 650px;

    margin: 0 auto;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 28px;

    background: #ffffff;

    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.05);

    transition:
        height 520ms cubic-bezier(.77, 0, .18, 1),
        box-shadow 220ms ease;
}


/* =========================================================
   AUTH FORM PANELS
   ========================================================= */

.auth-form-panel {
    position: absolute;
    top: 0;

    width: 50%;
    min-height: 100%;

    transition:
        transform 520ms cubic-bezier(.77, 0, .18, 1),
        opacity 320ms ease,
        visibility 0ms linear 520ms;
}

.auth-login-panel {
    left: 0;
    z-index: 2;

    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}

.auth-register-panel {
    left: 0;
    z-index: 1;

    opacity: 0;
    visibility: hidden;

    transform: translateX(100%);
}

.auth-shell.is-register .auth-login-panel {
    opacity: 0;
    visibility: hidden;

    transform: translateX(100%);
}

.auth-shell.is-register .auth-register-panel {
    z-index: 3;

    opacity: 1;
    visibility: visible;

    transform: translateX(100%);
}


/* =========================================================
   AUTH FORM INNER
   ========================================================= */

.auth-form-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
    min-height: 650px;

    padding: 54px;
}

.auth-register-panel .auth-form-inner {
    justify-content: flex-start;

    padding-top: 42px;
    padding-bottom: 42px;
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-register-panel .auth-heading {
    margin-bottom: 22px;
}

.auth-heading h1 {
    margin: 10px 0;

    color: var(--ink);

    font-size: clamp(30px, 3vw, 42px);

    line-height: 1.08;
    letter-spacing: -0.03em;
}

.auth-heading p {
    max-width: 430px;

    margin: 0;

    color: var(--text);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   AUTH FORM
   ========================================================= */

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-register-panel .auth-form {
    gap: 14px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-register-panel .auth-form-grid {
    gap: 13px 16px;
}

.auth-field {
    display: grid;
    gap: 7px;

    min-width: 0;
}

.auth-field-full {
    grid-column: 1 / -1;
}

.auth-field label {
    color: var(--ink);

    font-size: 12px;
    font-weight: 700;
}

.auth-field input:not([type="checkbox"]) {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid var(--line);
    border-radius: 12px;

    outline: 0;

    background: #ffffff;
    color: var(--ink);

    font: inherit;
    font-size: 14px;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.auth-field input:not([type="checkbox"])::placeholder {
    color: #98a2b3;
}

.auth-field input:not([type="checkbox"]):hover {
    border-color: rgba(0, 168, 181, 0.32);
}

.auth-field input:not([type="checkbox"]):focus {
    border-color: var(--brand);

    box-shadow:
        0 0 0 4px rgba(0, 168, 181, 0.1);
}


/* =========================================================
   AUTH LABEL ROW
   ========================================================= */

.auth-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-forgot-link {
    padding: 0;

    border: 0;

    background: transparent;
    color: var(--brand);

    font: inherit;
    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

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


/* =========================================================
   PASSWORD FIELD / SHOW HIDE
   ========================================================= */

.auth-password-wrap {
    position: relative;

    width: 100%;
}

.auth-password-wrap input {
    width: 100%;

    padding-right: 82px !important;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 56px;
    min-height: 30px;

    padding: 5px 8px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: var(--brand);

    font: inherit;
    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color 180ms ease,
        background-color 180ms ease,
        opacity 180ms ease;
}

.auth-password-toggle:hover {
    background: rgba(0, 168, 181, 0.07);
    color: var(--ink);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(0, 168, 181, 0.35);
    outline-offset: 2px;
}

.auth-password-toggle[data-password-visible="true"] {
    color: var(--ink);

    background: rgba(0, 168, 181, 0.08);
}


/* =========================================================
   AUTH CHECKBOX
   ========================================================= */

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: var(--text) !important;

    font-size: 12px !important;
    font-weight: 500 !important;

    line-height: 1.55;

    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;

    margin: 1px 0 0;

    accent-color: var(--brand);
}


/* =========================================================
   AUTH SUBMIT
   ========================================================= */

.auth-submit {
    width: 100%;
    min-height: 48px;

    margin-top: 3px;

    border: 0;

    cursor: pointer;
}


/* =========================================================
   AUTH FORM ERRORS
   ========================================================= */

.auth-field-error {
    color: #b42318;

    font-size: 11px;
    line-height: 1.45;
}

.auth-alert {
    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 11px;

    font-size: 12px;
    line-height: 1.55;
}

.auth-alert p {
    margin: 0;
}

.auth-alert p + p {
    margin-top: 4px;
}

.auth-alert-error {
    border: 1px solid #fecdca;

    background: #fef3f2;
    color: #b42318;
}


/* =========================================================
   AUTH OVERLAY
   ========================================================= */

.auth-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 10;

    width: 50%;
    height: 100%;

    overflow: hidden;

    transition:
        transform 520ms cubic-bezier(.77, 0, .18, 1);
}

.auth-shell.is-register .auth-overlay {
    transform: translateX(-100%);
}

.auth-overlay-track {
    position: relative;
    left: -100%;

    width: 200%;
    height: 100%;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(255, 255, 255, 0.08),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #008f9a 0%,
            #00a8b5 45%,
            #147a70 100%
        );

    transition:
        transform 520ms cubic-bezier(.77, 0, .18, 1);
}

.auth-shell.is-register .auth-overlay-track {
    transform: translateX(50%);
}


/* =========================================================
   AUTH OVERLAY PANELS
   ========================================================= */

.auth-overlay-panel {
    position: absolute;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 50%;
    height: 100%;

    text-align: center;
}

.auth-overlay-register {
    right: 0;
}

.auth-overlay-login {
    left: 0;
}

.auth-overlay-content {
    width: 100%;
    max-width: 390px;

    padding: 52px;
}

.auth-overlay-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 26px;

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-overlay-brand img {
    display: block;

    max-width: 48px;
    max-height: 48px;

    object-fit: contain;
}

.auth-overlay-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-overlay-content h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(28px, 3vw, 40px);

    line-height: 1.08;
    letter-spacing: -0.03em;
}

.auth-overlay-content p {
    margin: 18px 0 26px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   AUTH OVERLAY BUTTON
   ========================================================= */

.auth-outline-button {
    min-width: 160px;
    min-height: 46px;

    padding: 0 22px;

    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;

    font: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.auth-outline-button:hover {
    border-color: #ffffff;

    background: rgba(255, 255, 255, 0.15);

    transform: translateY(-1px);
}

.auth-overlay-note {
    display: block;

    max-width: 310px;

    margin: 20px auto 0;

    color: rgba(255, 255, 255, 0.65);

    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   AUTH MOBILE ELEMENTS
   ========================================================= */

.auth-mobile-switch,
.auth-mobile-footer {
    display: none;
}


/* =========================================================
   AUTH RESET MODAL
   ========================================================= */

body.auth-modal-open {
    overflow: hidden;
}

.auth-reset-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.auth-reset-modal.is-open {
    display: flex;
}

.auth-reset-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(12, 28, 45, 0.68);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-reset-modal-dialog {
    position: relative;
    z-index: 1;

    width: min(100%, 500px);

    padding: 40px;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 32px 100px rgba(15, 23, 42, 0.22),
        0 10px 30px rgba(15, 23, 42, 0.08);

    animation:
        authResetModalEnter
        220ms ease-out;
}

@keyframes authResetModalEnter {

    from {
        opacity: 0;

        transform:
            translateY(10px)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================================================
   AUTH RESET CLOSE
   ========================================================= */

.auth-reset-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid var(--line);
    border-radius: 11px;

    background: #ffffff;
    color: var(--text);

    font: inherit;
    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.auth-reset-modal-close:hover {
    border-color: rgba(0, 168, 181, 0.28);

    background: rgba(0, 168, 181, 0.05);
    color: var(--brand);

    transform: rotate(3deg);
}


/* =========================================================
   AUTH RESET CONTENT
   ========================================================= */

.auth-reset-content,
.auth-reset-success {
    text-align: center;
}

.auth-reset-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin: 0 auto 20px;

    border: 1px solid rgba(0, 168, 181, 0.14);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(0, 168, 181, 0.12),
            rgba(30, 115, 98, 0.06)
        );

    color: var(--brand);

    font-size: 24px;
    font-weight: 900;
}

.auth-reset-content .page-eyebrow,
.auth-reset-success .page-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: var(--brand);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-reset-content h2,
.auth-reset-success h2 {
    margin: 0 0 12px;

    color: var(--ink);

    font-size: 28px;
    font-weight: 800;

    line-height: 1.14;
    letter-spacing: -0.025em;
}

.auth-reset-content > p,
.auth-reset-success > p {
    max-width: 390px;

    margin: 0 auto 26px;

    color: var(--text);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   AUTH RESET FORM
   ========================================================= */

.auth-reset-form {
    display: grid;
    gap: 16px;

    margin-top: 22px;

    text-align: left;
}

.auth-reset-form .auth-field {
    gap: 7px;
}

.auth-reset-form .auth-field label {
    color: var(--ink);

    font-size: 12px;
    font-weight: 700;
}

.auth-reset-form .auth-field input {
    width: 100%;
    height: 50px;

    padding: 0 14px;

    border: 1px solid var(--line);
    border-radius: 12px;

    outline: 0;

    background: #ffffff;
    color: var(--ink);

    font: inherit;
    font-size: 14px;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.auth-reset-form .auth-field input::placeholder {
    color: #98a2b3;
}

.auth-reset-form .auth-field input:hover {
    border-color: rgba(0, 168, 181, 0.32);
}

.auth-reset-form .auth-field input:focus {
    border-color: var(--brand);

    box-shadow:
        0 0 0 4px rgba(0, 168, 181, 0.10);
}


/* =========================================================
   AUTH RESET SUBMIT / LOADING
   ========================================================= */

.auth-reset-submit {
    position: relative;

    width: 100%;
    min-height: 50px;

    margin-top: 2px;

    overflow: hidden;
}

.auth-reset-submit-text,
.auth-reset-submit-loading {
    align-items: center;
    justify-content: center;

    gap: 9px;
}

.auth-reset-submit-text {
    display: inline-flex;
}

.auth-reset-submit-loading {
    display: none;
}

.auth-reset-submit.is-loading {
    opacity: 0.92;

    cursor: wait;

    pointer-events: none;
}

.auth-reset-submit.is-loading .auth-reset-submit-text {
    display: none;
}

.auth-reset-submit.is-loading .auth-reset-submit-loading {
    display: inline-flex;
}

.auth-reset-submit:disabled {
    opacity: 0.92;

    cursor: wait;
}

.auth-reset-submit-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;

    animation:
        authResetSubmitSpin
        0.7s linear infinite;
}

@keyframes authResetSubmitSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   AUTH RESET SECURITY
   ========================================================= */

.auth-reset-security {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 20px;

    padding: 13px 14px;

    border: 1px solid rgba(0, 168, 181, 0.14);
    border-radius: 12px;

    background: rgba(0, 168, 181, 0.055);

    text-align: left;
}

.auth-reset-security-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    flex: 0 0 22px;

    border-radius: 50%;

    background: var(--brand);
    color: #ffffff;

    font-size: 10px;
    font-weight: 900;
}

.auth-reset-security p {
    margin: 0;

    color: var(--text);

    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   AUTH RESET BACK
   ========================================================= */

.auth-reset-back {
    margin-top: 20px;

    padding: 5px 8px;

    border: 0;

    background: transparent;
    color: var(--text);

    font: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 180ms ease;
}

.auth-reset-back:hover {
    color: var(--brand);
}


/* =========================================================
   AUTH RESET SUCCESS
   ========================================================= */

.auth-reset-info {
    display: grid;
    gap: 4px;

    margin: 24px 0;

    padding: 15px 16px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: var(--surface-alt);

    text-align: left;
}

.auth-reset-info strong {
    color: var(--ink);

    font-size: 11px;
    font-weight: 700;
}

.auth-reset-info span {
    color: var(--text);

    font-size: 10px;
    line-height: 1.55;
}

.auth-reset-close-button {
    width: 100%;
    min-height: 48px;
}


/* =========================================================
   PASSWORD RESET CONFIRM PAGE
   ========================================================= */

.password-reset-page-card {
    width: min(100%, 520px);

    margin: 0 auto;

    padding: 42px;

    border: 1px solid var(--line);
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.05);

    text-align: center;
}

.password-reset-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

    border: 1px solid rgba(0, 168, 181, 0.14);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(0, 168, 181, 0.12),
            rgba(30, 115, 98, 0.06)
        );

    color: var(--brand);

    font-size: 25px;
    font-weight: 900;
}

.password-reset-page-icon.is-error {
    border-color: #fecdca;

    background: #fef3f2;
    color: #b42318;
}

.password-reset-page-card h1 {
    margin: 8px 0 12px;

    color: var(--ink);

    font-size: 30px;
    font-weight: 800;

    line-height: 1.12;
    letter-spacing: -0.03em;
}

.password-reset-page-description {
    max-width: 400px;

    margin: 0 auto 28px;

    color: var(--text);

    font-size: 13px;
    line-height: 1.7;
}

.password-reset-confirm-form {
    display: grid;
    gap: 18px;

    text-align: left;
}

.password-reset-confirm-form .auth-field {
    min-width: 0;
}

.password-reset-confirm-form .auth-field input {
    width: 100%;
}

.password-reset-password-note {
    display: grid;
    gap: 4px;

    padding: 14px 15px;

    border: 1px solid rgba(0, 168, 181, 0.14);
    border-radius: 12px;

    background: rgba(0, 168, 181, 0.055);
}

.password-reset-password-note strong {
    color: var(--ink);

    font-size: 11px;
    font-weight: 700;
}

.password-reset-password-note span {
    color: var(--text);

    font-size: 10px;
    line-height: 1.55;
}

.password-reset-confirm-submit {
    width: 100%;
    min-height: 50px;
}

.password-reset-login-link {
    display: inline-block;

    margin-top: 20px;

    color: var(--brand);

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.password-reset-login-link:hover {
    text-decoration: underline;
}

.password-reset-invalid-info {
    display: grid;
    gap: 5px;

    margin: 24px 0;

    padding: 15px 16px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: var(--surface-alt);

    text-align: left;
}

.password-reset-invalid-info strong {
    color: var(--ink);

    font-size: 11px;
}

.password-reset-invalid-info span {
    color: var(--text);

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   ACCOUNT FORMS
   ========================================================= */

.account-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 22px;
}

.account-form-actions .button {
    min-width: 160px;
}

.account-password-note {
    margin-top: 18px;

    padding: 14px 16px;

    border: 1px solid rgba(0, 168, 181, 0.18);
    border-radius: 12px;

    background: rgba(0, 168, 181, 0.06);
    color: var(--text);

    font-size: 12px;
    line-height: 1.6;
}

.account-consent-field {
    margin-top: 4px;
}

.account-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: var(--text);

    font-size: 13px;
    line-height: 1.5;

    cursor: pointer;
}

.account-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    margin-top: 1px;

    accent-color: var(--brand);
}

.form-errors {
    margin-top: 6px;

    color: #b42318;

    font-size: 12px;
    line-height: 1.5;
}

.dh-form-alert {
    margin-bottom: 18px;

    padding: 14px 16px;

    border-radius: 12px;

    font-size: 13px;
    line-height: 1.6;
}

.dh-form-alert-error {
    border: 1px solid #fecdca;

    background: #fef3f2;
    color: #b42318;
}


/* =========================================================
   DASHBOARD HEADER
   ========================================================= */

.account-welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    padding: 28px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background: #ffffff;

    box-shadow: var(--shadow-soft);
}

.account-welcome-card h2 {
    margin: 8px 0;

    color: var(--ink);

    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.15;
}

.account-welcome-card p {
    max-width: 620px;

    margin: 0;

    color: var(--text);

    line-height: 1.65;
}

.account-welcome-card .button {
    flex: 0 0 auto;
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.account-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.account-stat-card {
    display: grid;
    gap: 6px;

    min-height: 150px;

    padding: 22px;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: #ffffff;
    color: inherit;

    text-decoration: none;

    box-shadow: var(--shadow-soft);
}

.account-stat-card > span {
    color: var(--text);

    font-size: 13px;
    font-weight: 600;
}

.account-stat-card strong {
    color: var(--ink);

    font-size: 34px;
    line-height: 1;
}

.account-stat-card small {
    align-self: end;

    color: var(--text);

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   CONTENT CARDS
   ========================================================= */

.account-panel-card {
    padding: 26px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background: #ffffff;

    box-shadow: var(--shadow-soft);
}

.account-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.account-panel-heading h2 {
    margin: 7px 0 0;

    color: var(--ink);

    font-size: 24px;
    line-height: 1.2;
}

.account-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 5px 11px;

    border: 1px solid rgba(0, 168, 181, 0.16);
    border-radius: 999px;

    background: rgba(0, 168, 181, 0.07);
    color: var(--brand);

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.account-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-top: 16px;

    padding-top: 16px;

    border-top: 1px solid var(--line);
}

.account-panel-footer small {
    color: var(--text);

    font-size: 11px;
}

.account-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    min-height: 210px;

    padding: 32px;

    border: 1px dashed var(--line);
    border-radius: 16px;

    background: var(--surface-alt);

    text-align: center;
}

.account-empty-state strong {
    color: var(--ink);

    font-size: 17px;
}

.account-empty-state p {
    max-width: 520px;

    margin: 8px auto 20px;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   ACCOUNT PANEL FORMS
   ========================================================= */

.account-panel-card.form-card {
    max-width: none;
}

.account-panel-card .form-grid {
    margin-top: 0;
}

.account-panel-card input {
    width: 100%;
}


/* =========================================================
   TABLE FOUNDATION
   ========================================================= */

.account-table-wrap {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--line);
    border-radius: 14px;
}

.account-table {
    width: 100%;
    min-width: 680px;

    border-collapse: collapse;
}

.account-table th,
.account-table td {
    padding: 14px 16px;

    border-bottom: 1px solid var(--line);

    text-align: left;
    vertical-align: middle;
}

.account-table th {
    background: var(--surface-alt);
    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}

.account-table td {
    background: #ffffff;
    color: var(--ink);

    font-size: 13px;
}

.account-table tbody tr:last-child td {
    border-bottom: 0;
}

.account-table tbody tr:hover td {
    background: rgba(0, 168, 181, 0.025);
}


/* =========================================================
   TABLE LINKS
   ========================================================= */

.account-table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;

    padding: 6px 12px;

    border: 1px solid rgba(0, 168, 181, 0.2);
    border-radius: 9px;

    background: rgba(0, 168, 181, 0.06);
    color: var(--brand);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.account-table-link:hover {
    border-color: rgba(0, 168, 181, 0.35);

    background: rgba(0, 168, 181, 0.11);
    color: var(--ink);

    transform: translateY(-1px);
}


/* =========================================================
   TABLE ACTION
   ========================================================= */

.account-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 34px;

    padding: 7px 12px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: #ffffff;
    color: var(--ink);

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03);

    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.account-table-action span {
    color: var(--brand);

    font-size: 14px;

    transition:
        transform 180ms ease;
}

.account-table-action:hover {
    border-color: rgba(0, 168, 181, 0.35);

    background: rgba(0, 168, 181, 0.045);
    color: var(--brand);

    box-shadow:
        0 3px 10px rgba(15, 23, 42, 0.06);

    transform: translateY(-1px);
}

.account-table-action:hover span {
    transform: translateX(2px);
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.account-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    white-space: nowrap;
}

.account-status-new {
    background: #eff8ff;
    color: #175cd3;
}

.account-status-contacted {
    background: #f4f3ff;
    color: #5925dc;
}

.account-status-waiting_info {
    background: #fffaeb;
    color: #b54708;
}

.account-status-preparing {
    background: #ecfdff;
    color: #0e7090;
}

.account-status-sent {
    background: #f0f9ff;
    color: #026aa2;
}

.account-status-completed {
    background: #ecfdf3;
    color: #027a48;
}

.account-status-cancelled {
    background: #fef3f2;
    color: #b42318;
}


/* =========================================================
   QUOTE DETAIL
   ========================================================= */

.account-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-detail-item {
    display: grid;
    gap: 7px;

    min-width: 0;

    padding: 18px;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: var(--surface-alt);
}

.account-detail-item span {
    color: var(--text);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.account-detail-item strong {
    min-width: 0;

    color: var(--ink);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* =========================================================
   QUOTE MESSAGE
   ========================================================= */

.account-message-box {
    position: relative;

    padding: 20px;

    border: 1px solid rgba(0, 168, 181, 0.14);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 168, 181, 0.045),
            rgba(20, 122, 112, 0.025)
        );

    color: var(--ink);

    font-size: 14px;
    line-height: 1.75;

    overflow-wrap: anywhere;
}


/* =========================================================
   QUOTE DETAIL ACTIONS
   ========================================================= */

.account-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.account-detail-actions .button {
    min-width: 150px;

    text-align: center;
}


/* =========================================================
   PANEL FILTERS
   ========================================================= */

.account-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;

    padding: 18px 22px;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    background: var(--surface-alt);
}

.account-filter-field {
    display: grid;
    gap: 6px;
}

.account-filter-field label {
    color: var(--muted);

    font-size: 12px;
    font-weight: 700;
}

.account-filter-field select {
    min-width: 200px;
    height: 42px;

    padding: 0 12px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: #ffffff;
    color: var(--ink);

    font: inherit;
}

.account-filter-clear {
    display: inline-flex;
    align-items: center;

    min-height: 42px;

    color: var(--muted);

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   PANEL TABLE
   ========================================================= */

.panel-contact-cell {
    display: grid;
    gap: 3px;
}

.panel-contact-cell small {
    color: var(--muted);

    font-size: 11px;
}

.panel-account-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

.panel-account-state-linked {
    background: rgba(0, 168, 181, 0.10);
    color: var(--brand);
}

.panel-account-state-guest {
    background: rgba(100, 116, 139, 0.10);
    color: var(--muted);
}


/* =========================================================
   RESPONSIVE - ACCOUNT
   ========================================================= */

@media (max-width: 1050px) {

    .account-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 22px;
    }

    .account-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-stat-card:last-child {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   RESPONSIVE - AUTH TABLET
   ========================================================= */

@media (max-width: 900px) {

    .auth-page {
        min-height: auto;

        padding: 44px 0;

        overflow: visible;
    }

    .auth-shell {
        height: auto !important;
        min-height: 0;

        max-width: 660px;

        overflow: hidden;

        border-radius: 22px;

        transition: none;
    }

    .auth-overlay {
        display: none;
    }

    .auth-form-panel {
        position: relative;
        top: auto;
        left: auto;

        width: 100%;
        min-height: 0;

        opacity: 1;
        visibility: visible;

        transform: none;

        transition: none;
    }

    .auth-login-panel {
        display: block;
    }

    .auth-register-panel {
        display: none;
    }

    .auth-shell.is-register .auth-login-panel {
        display: none;

        opacity: 1;
        visibility: visible;

        transform: none;
    }

    .auth-shell.is-register .auth-register-panel {
        display: block;

        opacity: 1;
        visibility: visible;

        transform: none;
    }

    .auth-form-inner,
    .auth-register-panel .auth-form-inner {
        min-height: 0;

        justify-content: flex-start;

        padding: 38px;
    }

    .auth-mobile-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;

        margin-bottom: 34px;

        padding: 4px;

        border-radius: 13px;

        background: var(--surface-alt);
    }

    .auth-mobile-tab {
        min-height: 40px;

        padding: 8px 12px;

        border: 0;
        border-radius: 10px;

        background: transparent;
        color: var(--text);

        font: inherit;
        font-size: 12px;
        font-weight: 700;

        cursor: pointer;

        transition:
            background-color 180ms ease,
            color 180ms ease,
            box-shadow 180ms ease;
    }

    .auth-mobile-tab.active {
        background: #ffffff;
        color: var(--brand);

        box-shadow:
            0 2px 8px rgba(15, 23, 42, 0.08);
    }

    .auth-mobile-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;

        margin-top: 24px;

        padding-top: 20px;

        border-top: 1px solid var(--line);

        color: var(--text);

        font-size: 12px;
    }

    .auth-mobile-footer button {
        padding: 0;

        border: 0;

        background: transparent;
        color: var(--brand);

        font: inherit;
        font-weight: 800;

        cursor: pointer;
    }

}


/* =========================================================
   RESPONSIVE - ACCOUNT TABLET
   ========================================================= */

@media (max-width: 820px) {

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

    .account-sidebar {
        position: static;
    }

    .account-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .account-menu a.active::before {
        display: none;
    }

    .account-welcome-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-stat-card:last-child {
        grid-column: auto;
    }

}


/* =========================================================
   RESPONSIVE - ACCOUNT MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .account-page-hero {
        padding-bottom: 38px;
    }

    .account-sidebar-user {
        padding: 18px;
    }

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

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

    .account-welcome-card,
    .account-panel-card {
        padding: 20px;

        border-radius: 16px;
    }

    .account-stat-card {
        min-height: 130px;
    }

    .account-empty-state {
        min-height: 180px;

        padding: 24px 18px;
    }

    .account-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-form-actions .button {
        width: 100%;
    }

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

    .account-detail-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .account-detail-actions .button {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE - AUTH / RESET MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .auth-page {
        padding: 24px 0 36px;
    }

    .auth-shell {
        border-radius: 18px;
    }

    .auth-form-inner,
    .auth-register-panel .auth-form-inner {
        padding: 26px 22px;
    }

    .auth-heading,
    .auth-register-panel .auth-heading {
        margin-bottom: 24px;
    }

    .auth-heading h1 {
        font-size: 30px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-register-panel .auth-form-grid {
        gap: 16px;
    }

    .auth-field-full {
        grid-column: auto;
    }

    .auth-field input:not([type="checkbox"]) {
        height: 50px;
    }

    .auth-reset-modal {
        align-items: flex-end;

        padding: 0;
    }

    .auth-reset-modal-dialog {
        width: 100%;
        max-height: 94vh;

        overflow-y: auto;

        padding: 36px 22px 26px;

        border-radius:
            22px
            22px
            0
            0;
    }

    .auth-reset-content h2,
    .auth-reset-success h2 {
        font-size: 25px;
    }

    .password-reset-page-card {
        padding: 30px 22px;

        border-radius: 20px;
    }

    .password-reset-page-card h1 {
        font-size: 26px;
    }

}


/* =========================================================
   RESPONSIVE - SMALL
   ========================================================= */

@media (max-width: 480px) {

    .account-sidebar-user {
        align-items: flex-start;
    }

    .account-user-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;

        border-radius: 12px;
    }

    .account-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-welcome-card .button,
    .account-empty-state .button {
        width: 100%;

        text-align: center;
    }

    .account-table th,
    .account-table td {
        padding: 12px;
    }

    .account-detail-item {
        padding: 15px;
    }

    .account-message-box {
        padding: 16px;
    }

    .account-panel-count {
        align-self: flex-start;
    }

}


/* =========================================================
   RESPONSIVE - VERY SMALL
   ========================================================= */

@media (max-width: 420px) {

    .auth-page .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-form-inner,
    .auth-register-panel .auth-form-inner {
        padding: 22px 18px;
    }

    .auth-mobile-switch {
        margin-bottom: 26px;
    }

    .auth-heading h1 {
        font-size: 27px;
    }

    .auth-heading p {
        font-size: 13px;
    }

    .auth-field-label-row {
        align-items: flex-start;
    }

    .auth-password-toggle {
        right: 7px;

        min-width: 52px;

        padding-left: 6px;
        padding-right: 6px;
    }

    .auth-reset-modal-dialog {
        padding: 34px 18px 22px;
    }

    .auth-reset-icon {
        width: 56px;
        height: 56px;

        border-radius: 16px;
    }

    .auth-reset-content h2,
    .auth-reset-success h2 {
        font-size: 23px;
    }

    .auth-reset-content > p,
    .auth-reset-success > p {
        font-size: 12px;
    }

    .password-reset-page-card {
        padding: 26px 18px;
    }

    .password-reset-page-card h1 {
        font-size: 24px;
    }

}