.auth-shell,
.logout-shell {
    position: relative;
    display: grid;
    min-height: calc(100vh - 130px);
    overflow: hidden;
    border: 1px solid #e6e9f2;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 50, 0.12);
}

.auth-shell {
    grid-template-columns: 1.08fr 0.92fr;
}

.auth-showcase {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: clamp(40px, 7vw, 90px);
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 12% 10%, #294dba 0, transparent 34%),
                linear-gradient(145deg, #080d22 0%, #131a3d 55%, #251451 100%);
    color: #fff;
}

.auth-showcase h1 {
    position: relative;
    z-index: 1;
    max-width: 590px;
    margin: 18px 0;
    font-size: clamp(2.35rem, 4vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.auth-showcase > p {
    position: relative;
    z-index: 1;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.02rem;
    line-height: 1.7;
}

.auth-eyebrow {
    position: relative;
    z-index: 1;
    color: #8ea5ff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.auth-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

.auth-feature-list i {
    display: inline-grid;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    place-items: center;
    border-radius: 50%;
    background: rgba(94, 224, 174, 0.15);
    color: #5ee0ae;
    font-style: normal;
}

.auth-orbit {
    position: absolute;
    border: 1px solid rgba(130, 150, 255, 0.18);
    border-radius: 50%;
}

.auth-orbit-one { right: -160px; bottom: -170px; width: 480px; height: 480px; }
.auth-orbit-two { right: -60px; bottom: -70px; width: 280px; height: 280px; }

.auth-card {
    display: flex;
    padding: clamp(34px, 6vw, 76px);
    flex-direction: column;
    justify-content: center;
}

.auth-card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.auth-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #5b7cff, #7655f7);
    box-shadow: 0 9px 24px rgba(91, 124, 255, 0.28);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
}

.auth-card h2 {
    margin: 0 0 3px;
    color: #161b2e;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.auth-card-heading p,
.auth-footnote {
    margin: 0;
    color: #83899c;
    font-size: 0.86rem;
}

.auth-message {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-message-error { background: #fff0f3; color: #ba3657; }
.auth-message-success { background: #eafaf4; color: #187d5d; }

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form > label {
    margin: 0 0 7px;
    color: #353b50;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-input-wrap {
    display: flex;
    height: 49px;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0 13px;
    border: 1px solid #dfe3ed;
    border-radius: 12px;
    background: #f8f9fc;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-input-wrap:focus-within {
    border-color: #6b7bf1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(107, 123, 241, 0.1);
}

.auth-input-wrap > span { color: #9ba1b2; font-size: 0.75rem; }

.auth-input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2437;
    font-size: 0.9rem;
}

.password-toggle {
    border: 0;
    background: transparent;
    color: #6672cb;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
}

.auth-submit {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #526ff0, #7557ed);
    box-shadow: 0 12px 28px rgba(82, 111, 240, 0.26);
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 15px 32px rgba(82, 111, 240, 0.34); }
.auth-footnote { margin-top: 22px; text-align: center; }

.logout-shell {
    place-items: center;
    background: radial-gradient(circle at 50% 0, #eef0ff 0, #fff 48%);
}

.logout-card {
    width: min(100%, 480px);
    padding: 46px;
    text-align: center;
}

.logout-avatar {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    place-items: center;
    border: 5px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff4f8b, #7357ff);
    box-shadow: 0 12px 32px rgba(94, 78, 218, 0.27);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.logout-card h1 {
    margin: 12px 0 10px;
    color: #171b2c;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.logout-card > p { color: #777e91; line-height: 1.65; }

.logout-user {
    margin: 24px 0 18px;
    padding: 11px 14px;
    border-radius: 11px;
    background: #f3f4f9;
    color: #777e91;
    font-size: 0.82rem;
}

.logout-user strong { color: #30364d; }
.auth-submit-danger { width: 100%; background: linear-gradient(135deg, #e64769, #c83358); box-shadow: 0 12px 28px rgba(210, 54, 91, 0.22); }

.auth-cancel {
    display: inline-block;
    margin-top: 20px;
    color: #6570bf;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-showcase { min-height: 300px; padding: 42px 30px; }
    .auth-showcase h1 { font-size: 2.5rem; }
    .auth-feature-list { display: none; }
    .auth-card, .logout-card { padding: 34px 24px; }
}
