.auth-page {
    display: grid;
    overflow-x: hidden;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 12%, rgba(125, 91, 255, 0.16), transparent 30%),
        radial-gradient(circle at 92% 88%, rgba(113, 79, 255, 0.10), transparent 34%),
        #f7f6ff;
}

html[data-theme="dark"] .auth-page {
    background:
        radial-gradient(circle at 14% 9%, rgba(106, 70, 255, 0.2), transparent 32%),
        radial-gradient(circle at 90% 90%, rgba(79, 54, 179, 0.14), transparent 32%),
        var(--color-page);
}

.auth-shell {
    display: grid;
    width: min(1320px, 100%);
    min-height: min(820px, calc(100vh - 48px));
    margin: 0 auto;
    grid-template-columns: minmax(410px, 0.9fr) minmax(560px, 1.1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    background: var(--color-surface);
    box-shadow: 0 18px 60px rgba(59, 46, 123, 0.11);
}

.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(40px, 4vw, 60px) clamp(32px, 4vw, 60px) 36px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(247, 246, 255, 0.9)),
        radial-gradient(circle at 30% 24%, rgba(113, 82, 255, 0.15), transparent 32%);
}

html[data-theme="dark"] .auth-showcase {
    background:
        linear-gradient(140deg, rgba(27, 29, 45, 0.96), rgba(24, 26, 41, 0.94)),
        radial-gradient(circle at 30% 24%, rgba(113, 82, 255, 0.19), transparent 32%);
}

.auth-showcase .brand {
    align-self: flex-start;
    margin-left: clamp(0px, 3vw, 58px);
}

.auth-showcase .brand {
    gap: 13px;
    font-size: 1.8rem;
}

.auth-showcase .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
}

.brand-tagline {
    width: 100%;
    margin: 5px 0 0;
    padding-left: clamp(0px, 3vw, 58px);
    color: var(--color-muted);
    font-size: 0.96rem;
}

.task-illustration {
    position: relative;
    width: min(430px, 90%);
    height: 295px;
    margin: 5px auto -8px;
    filter: drop-shadow(0 20px 18px rgba(65, 48, 146, 0.11));
    transform: scale(0.86);
}

.clipboard {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 68px;
    display: grid;
    width: 216px;
    height: 282px;
    padding: 65px 34px 28px;
    border: 13px solid #e5e5f2;
    border-radius: 20px;
    background: #fff;
    transform: translateX(-50%);
    box-shadow: inset 0 0 0 1px #d7d8e7;
}

html[data-theme="dark"] .clipboard {
    border-color: #34364b;
    background: #222538;
    box-shadow: inset 0 0 0 1px #474b64;
}

.clipboard-clip {
    position: absolute;
    left: 50%;
    top: -37px;
    width: 94px;
    height: 44px;
    border-radius: 12px 12px 7px 7px;
    background: linear-gradient(145deg, #866ff2, #5a36dc);
    transform: translateX(-50%);
    box-shadow: 0 5px 9px rgba(64, 40, 173, 0.23);
}

.clipboard-clip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -23px;
    width: 37px;
    height: 37px;
    border: 10px solid #7457eb;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    transform: translateX(-50%);
}

.clipboard i {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 48px;
    font-style: normal;
}

.clipboard b {
    display: grid;
    flex: 0 0 29px;
    height: 29px;
    place-items: center;
    border: 3px solid #d9dbe8;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
}

.clipboard i:nth-of-type(-n+2) b {
    border-color: #7252e8;
    background: #7252e8;
}

.clipboard em {
    position: relative;
    width: 92px;
    height: 7px;
    border-radius: 4px;
    background: #ddddea;
}

.clipboard em::after {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 62%;
    height: 6px;
    border-radius: 4px;
    background: #e6e6ef;
}

.illustration-chart {
    position: absolute;
    left: 0;
    top: 143px;
    display: flex;
    width: 132px;
    height: 88px;
    align-items: flex-end;
    gap: 8px;
    padding: 30px 24px 19px;
    border: 1px solid #e4e4f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.illustration-chart i {
    width: 15px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(#846cff, #5635dc);
}

.illustration-chart i:nth-child(1) { height: 24px; }
.illustration-chart i:nth-child(2) { height: 42px; }
.illustration-chart i:nth-child(3) { height: 33px; }

.illustration-mug {
    position: absolute;
    right: 7px;
    bottom: -5px;
    width: 71px;
    height: 62px;
    border-radius: 6px 6px 20px 20px;
    background: #eeedf5;
    box-shadow: inset 0 4px #d9d7e4;
}

.illustration-mug::after {
    content: "";
    position: absolute;
    right: -29px;
    top: 9px;
    width: 35px;
    height: 37px;
    border: 9px solid #e5e3ee;
    border-left: 0;
    border-radius: 0 20px 20px 0;
}

.illustration-pot {
    position: absolute;
    z-index: 4;
    left: 58px;
    bottom: 3px;
    width: 58px;
    height: 58px;
    border-radius: 6px 6px 17px 17px;
    background: linear-gradient(150deg, #7856e5, #5133cb);
}

.illustration-leaf {
    position: absolute;
    z-index: 3;
    left: 76px;
    bottom: 54px;
    width: 22px;
    height: 73px;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(150deg, #8a70ef, #5538c9);
    transform: rotate(-28deg);
    transform-origin: bottom;
}

.leaf-two {
    left: 92px;
    height: 91px;
    transform: rotate(28deg) scaleX(-1);
}

.showcase-copy {
    max-width: 500px;
    text-align: center;
}

.showcase-copy h2 {
    margin: 12px 0 5px;
    font-size: 1.15rem;
}

.showcase-copy p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.benefit-list {
    display: grid;
    width: min(500px, 100%);
    margin: 22px 0 0;
    padding: 0;
    gap: 13px;
    list-style: none;
}

.benefit-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 14px;
}

.benefit-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.benefit-list strong,
.benefit-list small {
    display: block;
}

.benefit-list strong {
    margin-bottom: 3px;
    font-size: 0.84rem;
}

.benefit-list small {
    color: var(--color-muted);
    font-size: 0.75rem;
}

.showcase-dots {
    display: flex;
    margin-top: auto;
    padding-top: 22px;
    gap: 11px;
}

.showcase-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cfd2e1;
}

.showcase-dots i:first-child {
    background: var(--color-primary);
}

.auth-panel {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 62px clamp(38px, 6vw, 88px) 48px;
    background: var(--color-surface);
}

.theme-switch {
    position: absolute;
    z-index: 2;
    top: 39px;
    right: 43px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: transparent;
    color: var(--color-subtle);
    cursor: pointer;
}

.theme-switch i {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 20px;
    background: linear-gradient(90deg, #7b5df4, #8e72fa);
    box-shadow: inset 0 0 0 1px rgba(68, 42, 181, 0.11);
}

.theme-switch i::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(27, 17, 70, 0.22);
    transition: transform var(--transition);
}

html[data-theme="dark"] .theme-switch i::after {
    transform: translateX(-20px);
}

.auth-card {
    width: min(520px, 100%);
}

.auth-card-header {
    margin-bottom: 34px;
    text-align: center;
}

.auth-card-header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 2.6vw, 2rem);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.auth-card-header p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

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

.form-group {
    min-width: 0;
}

.form-group label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 54px 0 58px;
    border: 1px solid var(--color-border);
    border-radius: 11px;
    outline: 0;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.93rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.input-wrap input::placeholder {
    color: #9199b3;
}

.input-wrap input:hover {
    border-color: #c9cde0;
}

.input-wrap input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(91, 53, 245, 0.11);
}

.form-group.has-error input {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.08);
}

.field-icon {
    position: absolute;
    z-index: 1;
    left: 20px;
    top: 50%;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 6px;
    color: #77809f;
    font-size: 0.72rem;
    font-weight: 800;
    transform: translateY(-50%);
    pointer-events: none;
}

.field-icon.lock-icon {
    border-radius: 8px 8px 5px 5px;
    font-size: 0;
}

.field-icon.lock-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: -10px;
    width: 10px;
    height: 11px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.password-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: transparent;
    color: #77809f;
    cursor: pointer;
    transform: translateY(-50%);
}

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

.field-error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: var(--color-danger);
    font-size: 0.76rem;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -10px;
    font-size: 0.88rem;
}

.form-options a {
    font-weight: 650;
}

.checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 0.87rem;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--color-primary);
}

.auth-form .button {
    min-height: 50px;
    margin-top: 1px;
}

.demo-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px dashed #cfc8f8;
    border-radius: 10px;
    background: var(--color-primary-soft);
    color: var(--color-muted);
    font-size: 0.78rem;
}

.demo-note strong {
    color: var(--color-primary);
}

.auth-alternate {
    margin: 27px 0 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    text-align: center;
}

.auth-access-note {
    font-size: 0.86rem;
}

.auth-alternate a {
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.password-help {
    margin: -16px 0 0;
    color: var(--color-muted);
    font-size: 0.77rem;
}

.terms-check {
    line-height: 1.6;
}

.terms-error {
    margin-top: -20px;
}

html[data-theme="dark"] .illustration-chart {
    border-color: #3d4056;
    background: rgba(34, 37, 56, 0.96);
}

html[data-theme="dark"] .illustration-mug {
    background: #34374b;
    box-shadow: inset 0 4px #242738;
}

html[data-theme="dark"] .illustration-mug::after {
    border-color: #34374b;
}
