/* Layout-i dy-kolonësh dhe paneli vizual i authentication pages. */
.auth-page { min-height: 100vh; background: #fff; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr); }
.auth-brand { position: relative; display: flex; overflow: hidden; padding: 44px clamp(34px, 6vw, 92px); color: #fff; background: #17182d; flex-direction: column; justify-content: space-between; }
.auth-brand::before { position: absolute; width: 520px; height: 520px; right: -240px; bottom: -230px; border: 1px solid rgba(255,255,255,0.09); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,0.025), 0 0 0 140px rgba(255,255,255,0.018); content: ""; }
.auth-brand::after { position: absolute; width: 230px; height: 230px; top: 22%; left: -170px; border: 48px solid rgba(91,92,226,0.22); border-radius: 50%; content: ""; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand__content { max-width: 540px; padding-block: 70px; }
.auth-brand h1 { max-width: 520px; margin-bottom: 22px; font-size: clamp(42px, 4.7vw, 70px); line-height: 1.04; letter-spacing: -0.05em; }
.auth-brand__content > p { max-width: 470px; margin-bottom: 34px; color: #b9bed0; font-size: 18px; line-height: 1.7; }
.auth-benefits { display: grid; margin: 0; padding: 0; gap: 13px; list-style: none; color: #d9dbea; font-size: 14px; }
.auth-benefits span { display: inline-grid; width: 23px; height: 23px; margin-right: 8px; place-items: center; color: #d8d8ff; background: rgba(91,92,226,0.32); border-radius: 50%; }
.auth-brand__foot { margin: 0; color: #777e97; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
/* Karta e formës ruan të njëjtën gjerësi për Login, Register dhe Reset. */
.auth-panel { display: grid; padding: 48px 32px; place-items: center; }
.auth-card { width: min(100%, 430px); }
.auth-card__heading { margin-bottom: 30px; }
.auth-card__heading h2 { margin-bottom: 9px; font-size: 33px; letter-spacing: -0.035em; }
.auth-card__heading p { margin-bottom: 0; color: var(--color-text); line-height: 1.6; }
.auth-switch { margin: 24px 0 0; color: var(--color-text); font-size: 14px; text-align: center; }
.auth-switch a, .field__row a { font-weight: 750; }

/* Në tablet/mobile paneli i brand-it bëhet header kompakt. */
@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { min-height: 280px; padding: 30px; }
    .auth-brand__content { padding: 35px 0 15px; }
    .auth-brand h1 { max-width: 620px; margin-bottom: 12px; font-size: clamp(33px, 8vw, 50px); }
    .auth-brand__content > p { margin-bottom: 0; font-size: 16px; }
    .auth-benefits, .auth-brand__foot { display: none; }
    .auth-panel { padding: 44px 22px; }
}

/* Login-i përdor një card të vetëm SaaS; faqet e tjera të account-it ruajnë layout-in ekzistues. */
.auth-page--centered {
    min-height: 100svh;
    background: linear-gradient(180deg, #fbfbfd 0%, #f3f4f8 100%);
}
.auth-shell--centered {
    display: grid;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 20px;
    place-items: center;
}
.auth-panel--centered {
    display: grid;
    width: 100%;
    padding: 0;
    place-items: center;
}
.auth-page--centered .auth-card {
    width: min(100%, 420px);
    padding: 40px;
    border: 1px solid #e4e6ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(24, 28, 48, 0.08);
}
.auth-centered-brand {
    display: flex;
    width: fit-content;
    margin: 0 auto 34px;
    border-radius: 8px;
}
.auth-centered-brand img {
    width: 170px;
    height: 31px;
    object-fit: contain;
}
.auth-card__heading--centered {
    margin-bottom: 28px;
    text-align: center;
}
.auth-card__heading--centered h1 {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}
.auth-card__heading--centered p {
    color: #73798a;
    font-size: 15px;
}
.auth-centered-form {
    gap: 18px;
}
.auth-centered-form .field {
    gap: 8px;
    color: #282c3b;
    font-size: 14px;
    font-weight: 650;
}
.auth-centered-form .field input {
    min-height: 48px;
    padding: 11px 14px;
    border-color: #d9dce5;
    border-radius: 10px;
}
.auth-centered-form .field input:hover {
    border-color: #c8cbd6;
}
.auth-centered-form .field input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91, 92, 226, 0.12);
}
.password-field {
    position: relative;
}
.password-field > input {
    padding-right: 48px;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    color: #73798a;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}
.password-toggle:hover {
    color: var(--color-ink);
    background: #f3f4f8;
}
.password-toggle__hide,
.password-toggle[aria-pressed="true"] .password-toggle__show {
    display: none;
}
.password-toggle[aria-pressed="true"] .password-toggle__hide {
    display: block;
}
.auth-login-options {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #5f6575;
    font-size: 13px;
}
.auth-login-options a {
    font-weight: 700;
}
.remember-option {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.remember-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--color-primary);
}
.auth-submit {
    min-height: 48px;
    margin-top: 2px;
    border-radius: 10px;
    font-size: 14px;
}
.auth-submit[aria-busy="true"] .button-spinner {
    display: block;
}
.button-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-button-spin 700ms linear infinite;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 16px;
    color: #73798a;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-line);
}
.auth-google {
    min-height: 48px;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
}
.auth-switch--centered {
    margin-top: 26px;
    color: #73798a;
}
.auth-switch--centered a {
    margin-left: 3px;
}
@keyframes auth-button-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .auth-shell--centered {
        padding: 20px 16px;
    }
    .auth-page--centered .auth-card {
        padding: 30px 24px;
        border-radius: 16px;
    }
    .auth-centered-brand {
        margin-bottom: 28px;
    }
    .auth-card__heading--centered h1 {
        font-size: 28px;
    }
}

@media (max-width: 340px) {
    .auth-shell--centered {
        padding-inline: 12px;
    }
    .auth-page--centered .auth-card {
        padding-inline: 20px;
    }
    .auth-login-options {
        gap: 10px;
        font-size: 12px;
    }
}
