.planner-auth-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(15, 95, 199, 0.12) 0%, rgba(22, 163, 74, 0.08) 38%, rgba(245, 158, 11, 0.10) 100%),
        #f7f9fc !important;
}

.planner-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.planner-auth-visual {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-content: space-between;
    gap: 24px;
    padding: 34px 42px;
    overflow: hidden;
    background:
        linear-gradient(140deg, rgba(11, 31, 64, 0.96), rgba(15, 95, 199, 0.90) 55%, rgba(15, 31, 58, 0.98)),
        #0f1f3a;
    color: #fff;
}

.planner-auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(140deg, rgba(0, 0, 0, 0.84), transparent 78%);
    pointer-events: none;
}

.planner-auth-brand,
.planner-auth-copy,
.planner-auth-preview {
    position: relative;
    z-index: 1;
}

.planner-auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: 1.28rem;
    font-weight: 850;
    text-decoration: none;
}

.planner-auth-brand-link:hover,
.planner-auth-brand-link:focus {
    color: inherit;
}

.planner-auth-brand .planner-brand-mark,
.planner-auth-mobile-brand .planner-brand-mark {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}

.planner-auth-copy {
    max-width: 660px;
    padding-block: 10px;
}

.planner-auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 4px 10px;
    border: 1px solid rgba(15, 95, 199, 0.16);
    border-radius: 999px;
    background: rgba(15, 95, 199, 0.08);
    color: var(--planner-primary);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
}

.planner-auth-visual .planner-auth-kicker {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.86);
}

.planner-auth-copy h1 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 5.2vw, 4.8rem);
    font-weight: 880;
    line-height: 0.96;
}

.planner-auth-copy p {
    max-width: 590px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.06rem;
    line-height: 1.7;
}

.planner-auth-preview {
    width: min(640px, 92%);
}

.planner-auth-window {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(4, 12, 28, 0.68);
    box-shadow: 0 32px 84px rgba(0, 0, 0, 0.32);
}

.planner-auth-window-bar {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.08);
}

.planner-auth-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
}

.planner-auth-window-bar span:nth-child(1) {
    background: #f87171;
}

.planner-auth-window-bar span:nth-child(2) {
    background: #fbbf24;
}

.planner-auth-window-bar span:nth-child(3) {
    background: #34d399;
}

.planner-auth-window img {
    width: 100%;
    aspect-ratio: 16 / 8.7;
    display: block;
    object-fit: cover;
    object-position: left center;
    opacity: 0.82;
}

.planner-auth-board {
    min-height: 285px;
    padding: 28px;
    background: #eef3f0;
}

.planner-auth-board-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    color: #1f2d29;
}

.planner-auth-board-head span {
    padding: 7px 10px;
    border-radius: 7px;
    color: #fff;
    background: #315f52;
    font-size: .65rem;
    font-weight: 700;
}

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

.planner-auth-board-columns > div {
    min-height: 185px;
    padding: 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .72);
}

.planner-auth-board-columns small {
    display: block;
    margin-bottom: 10px;
    color: #63716c;
    font-weight: 800;
    text-transform: uppercase;
}

.planner-auth-board-columns i {
    display: block;
    height: 56px;
    margin-top: 8px;
    border: 1px solid #dce4df;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 12px rgba(32, 62, 53, .06);
}

.planner-auth-metric {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.planner-auth-metric i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.15rem;
}

.planner-auth-metric strong,
.planner-auth-metric span {
    display: block;
}

.planner-auth-metric strong {
    font-size: 1.2rem;
    line-height: 1;
}

.planner-auth-metric span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
}

.planner-auth-metric-top {
    right: -28px;
    top: 56px;
}

.planner-auth-metric-bottom {
    left: 28px;
    bottom: -24px;
}

.planner-auth-panel {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 44px clamp(24px, 6vw, 74px);
    background: rgba(255, 255, 255, 0.76);
}

@media (min-width: 1100px) {
    .planner-auth-shell {
        height: 100vh;
        overflow: hidden;
    }

    .planner-auth-visual,
    .planner-auth-panel {
        height: 100vh;
    }

    .planner-auth-panel {
        overflow-y: auto;
    }
}

.planner-auth-mobile-brand {
    display: none;
    margin-bottom: 24px;
}

.planner-auth-mobile-brand .planner-auth-brand-link {
    color: var(--planner-ink);
}

.planner-auth-mobile-brand .planner-brand-mark {
    border-color: var(--planner-primary);
    background: var(--planner-primary);
}

.planner-auth-card {
    width: min(100%, 460px);
    margin-inline: auto;
}

.planner-auth-heading {
    margin-bottom: 26px;
}

.planner-auth-heading h2 {
    margin: 0;
    color: var(--planner-ink);
    font-size: 2.04rem;
    font-weight: 850;
    line-height: 1.08;
}

.planner-auth-heading p {
    margin: 12px 0 0;
    color: var(--planner-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

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

.planner-auth-form .form-label {
    margin-bottom: 8px;
    color: var(--planner-ink);
    font-size: 0.88rem;
    font-weight: 800;
}

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

.planner-auth-label-row a,
.planner-auth-footer-copy a {
    color: var(--planner-primary);
    font-weight: 800;
    text-decoration: none;
}

.planner-auth-label-row a:hover,
.planner-auth-label-row a:focus,
.planner-auth-footer-copy a:hover,
.planner-auth-footer-copy a:focus {
    text-decoration: underline;
}

.planner-auth-field {
    position: relative;
}

.planner-auth-field > i {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 2;
    color: var(--planner-muted);
    transform: translateY(-50%);
}

.planner-auth-field .form-control {
    min-height: 50px;
    padding-left: 46px;
    border-color: #d8e0eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 31, 58, 0.03);
}

.planner-auth-field:has(.planner-auth-password-toggle) .form-control {
    padding-right: 58px;
}

.planner-auth-field input[type="password"]::-ms-reveal,
.planner-auth-field input[type="password"]::-ms-clear {
    display: none;
}

.planner-auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-radius: 0 8px 8px 0;
    color: #53647c;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color .15s ease, color .15s ease;
    width: 46px;
    z-index: 3;
}

.planner-auth-password-toggle:hover,
.planner-auth-password-toggle:focus-visible {
    background: #f1f6fc;
    color: var(--planner-primary);
    outline: 0;
}

.planner-auth-password-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(15, 95, 199, .14);
}

.planner-auth-password-toggle i {
    font-size: 1.08rem;
    line-height: 1;
}

.planner-auth-field .form-control:focus {
    border-color: var(--planner-primary);
    box-shadow: 0 0 0 0.22rem rgba(15, 95, 199, 0.13);
}

.planner-auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--planner-muted);
    font-weight: 700;
    cursor: pointer;
}

.planner-auth-check .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

.planner-auth-submit {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    border-radius: 8px !important;
    font-size: 0.98rem;
}

.planner-auth-submit.is-loading {
    cursor: wait;
    opacity: .88;
}

.planner-auth-submit .spinner-border {
    height: 1.05rem;
    width: 1.05rem;
}

.planner-auth-submit-note {
    color: var(--planner-muted);
    font-size: .82rem;
    line-height: 1.4;
    margin: -10px 0 0;
    text-align: center;
}

.planner-auth-submit-note[hidden] {
    display: none;
}

.planner-auth-secondary-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--planner-line);
    border-radius: 8px;
    background: #fff;
    color: var(--planner-ink);
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.planner-auth-secondary-action:hover,
.planner-auth-secondary-action:focus {
    border-color: #cbd5e1;
    background: #f4f7fb;
    color: var(--planner-primary);
}

.planner-auth-footer-copy {
    margin: 24px 0 0;
    color: var(--planner-muted);
    font-weight: 700;
    text-align: center;
}

.planner-auth-message {
    text-align: center;
}

.planner-auth-success-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 8px;
    background: var(--planner-green-soft);
    color: var(--planner-green);
    font-size: 1.8rem;
}

.planner-auth-card .alert {
    border: 0;
    border-radius: 8px;
    font-weight: 700;
}

.planner-auth-feedback {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.planner-auth-feedback-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

.planner-auth-feedback-icon > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.planner-auth-feedback-icon > i::before {
    display: block;
    line-height: 1;
    vertical-align: 0;
}

.planner-auth-feedback > div > strong,
.planner-auth-feedback > div > span {
    display: block;
}

.planner-auth-feedback > div > strong {
    margin-bottom: 2px;
    color: var(--planner-ink);
    font-weight: 800;
}

.planner-auth-feedback > div > span {
    color: var(--planner-muted);
    font-size: .88rem;
    line-height: 1.45;
}

.planner-auth-feedback-error {
    border-color: rgba(190, 18, 60, .16);
    background: #fff1f3;
}

.planner-auth-feedback-error .planner-auth-feedback-icon {
    background: rgba(190, 18, 60, .10);
    color: #be123c;
}

.planner-auth-feedback-success {
    border-color: rgba(22, 163, 74, .16);
    background: var(--planner-green-soft);
}

.planner-auth-feedback-success .planner-auth-feedback-icon {
    background: rgba(22, 163, 74, .11);
    color: var(--planner-green);
}

.planner-auth-message-note,
.planner-auth-password-requirements {
    display: block;
    margin: -6px 0 20px;
    color: var(--planner-muted);
    font-size: .86rem;
    line-height: 1.5;
}

.planner-auth-message-note {
    text-align: center;
}

@media (max-width: 1099.98px) {
    .planner-auth-shell {
        grid-template-columns: 1fr;
    }

    .planner-auth-visual {
        display: none;
    }

    .planner-auth-panel {
        align-items: start;
        padding: 28px 20px 42px;
    }

    .planner-auth-mobile-brand {
        display: block;
        width: min(100%, 460px);
        margin-inline: auto;
    }
}

@media (max-width: 575.98px) {
    .planner-auth-panel {
        padding: 22px 16px 34px;
    }

    .planner-auth-heading h2 {
        font-size: 1.72rem;
    }

    .planner-auth-heading p {
        font-size: 0.94rem;
    }

    .planner-auth-field .form-control,
    .planner-auth-submit,
    .planner-auth-secondary-action {
        min-height: 48px;
    }
}
.planner-auth-legal {
    color: #4f5b70;
    font-size: .875rem;
    line-height: 1.5;
}

.planner-auth-legal a {
    color: #354a84;
    font-weight: 700;
}
