.auth-page {
    min-width: 320px;
    overflow-x: hidden;
    background: #1a0e13;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(420px, 47.5%) minmax(0, 52.5%);
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: clamp(28px, 5.8vh, 54px);
    padding: clamp(42px, 6vw, 62px);
    overflow: hidden;
    border-radius: 34px;
    color: #fff8f5;
    background:
        linear-gradient(180deg, rgba(22, 10, 15, 0.2) 0%, rgba(64, 35, 43, 0.66) 48%, rgba(255, 242, 237, 0.98) 100%),
        #241219;
    box-shadow: 0 24px 70px rgba(18, 8, 12, 0.22);
}

.auth-showcase::after {
    position: absolute;
    right: -90px;
    bottom: -170px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    content: "";
}

.auth-brand,
.auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.auth-brand img,
.auth-mobile-brand img {
    display: block;
    object-fit: contain;
}

.auth-brand span,
.auth-mobile-brand span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.32em;
}

.auth-showcase-copy {
    display: grid;
    gap: 24px;
    width: min(100%, 620px);
    margin: auto 0;
}

.auth-wordmark {
    margin: 0;
    font-size: clamp(54px, 5vw, 80px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.08em;
}

.auth-showcase-copy > p:last-child {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 249, 247, 0.84);
    font-size: clamp(17px, 1.2vw, 21px);
    line-height: 1.65;
}

.auth-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    color: #29151b;
    list-style: none;
    font-size: 15px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-benefits li::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #c98288;
    box-shadow: 0 0 0 4px rgba(201, 130, 136, 0.11);
    content: "";
}

.auth-workspace {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        linear-gradient(155deg, rgba(200, 193, 191, 0.96) 0%, rgba(241, 225, 221, 0.95) 54%, #fff5f0 100%);
}

.auth-workspace-header {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 28px;
    left: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.auth-mobile-brand {
    display: none;
    color: #2c1720;
}

.auth-language {
    border-color: rgba(130, 75, 84, 0.15);
    background: rgba(255, 250, 247, 0.72);
    backdrop-filter: blur(12px);
}

.auth-page .auth-main {
    display: grid;
    place-items: center;
    width: min(calc(100% - 64px), 600px);
    min-height: 100%;
    margin: 0 auto;
    padding: 82px 0 52px;
}

.auth-page .auth-card {
    width: 100%;
    padding: clamp(36px, 4vw, 46px);
    border: none !important;
    border-radius: 30px;
    background: #fffaf8;
    box-shadow: 0 30px 80px rgba(64, 38, 44, 0.12), 0 1.5px 3px rgba(64, 38, 44, 0.06);
}

.auth-page .auth-heading h1 {
    margin: 0;
    color: #2c2328;
    font-size: clamp(36px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.auth-page .auth-heading > p:last-child {
    margin-top: 12px;
    color: #7a6f77;
    font-size: 15px;
    line-height: 1.5;
}

.auth-page .auth-form {
    gap: 22px;
    margin-top: 32px;
}

.auth-page .auth-field {
    gap: 9px;
}

.auth-page .auth-field > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #3a2e33;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.auth-input {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    padding: 0 20px;
    border: none !important;
    border-radius: 16px;
    color: #3a2e33;
    background: #e8eaf5;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.auth-input svg {
    flex-shrink: 0;
    color: #7c6f91;
}

.auth-input:focus-within {
    background: #e0e4f5;
    box-shadow: 0 0 0 3px rgba(120, 90, 160, 0.12);
}

.auth-page .auth-input input {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 0;
    border: none !important;
    outline: none !important;
    color: #3a2e33;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
}

.auth-page .auth-input input::placeholder {
    color: #9a9099;
}

.auth-input-password {
    grid-template-columns: 24px minmax(0, 1fr) auto;
}

.auth-password-toggle {
    min-width: 54px;
    min-height: 42px;
    padding: 0 8px;
    border: 0;
    color: #8a6f8f;
    background: rgba(160, 140, 170, 0.12);
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease;
}

.auth-password-toggle:hover {
    background: rgba(160, 140, 170, 0.2);
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 28px;
}

.auth-form-options > a {
    color: #7f2230;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6a5f6d;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.auth-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #7c6f91;
    cursor: pointer;
}

.auth-form-options > a {
    color: #7f2230;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 120ms ease;
}

.auth-form-options > a:hover {
    color: #631824;
}

.auth-page .auth-form .button {
    min-height: 58px;
    margin: 0;
    border: none !important;
    border-radius: 16px;
    background: linear-gradient(135deg, #b4637a, #7a2e3f);
    box-shadow: 0 8px 24px rgba(120, 46, 63, 0.18);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    transition: filter 120ms ease, transform 120ms ease;
}

.auth-page .auth-form .button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.auth-page .auth-form .button:active {
    transform: translateY(0);
}

.auth-page .auth-alternative {
    margin-top: 24px;
    color: #766b6e;
    font-size: 14px;
}

.auth-page .auth-alternative a {
    color: #7f2230;
    font-weight: 600;
    text-decoration: none;
    transition: color 120ms ease;
}

.auth-page .auth-alternative a:hover {
    color: #631824;
}

.auth-page .form-alert,
.auth-page .notice {
    margin-top: 22px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-page .form-alert {
    background: #fce8ec;
    color: #7f2230;
    border: none !important;
}

.auth-page .notice {
    background: #e8f5e8;
    color: #2e6b2e;
    border: none !important;
}

@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: minmax(360px, 43%) minmax(0, 57%);
    }

    .auth-showcase {
        margin: 28px;
        padding: 42px;
    }

    .auth-wordmark {
        font-size: 54px;
    }
}

@media (max-width: 820px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-showcase {
        display: none;
    }

    .auth-workspace-header {
        top: 18px;
        right: 18px;
        left: 18px;
        justify-content: space-between;
    }

    .auth-mobile-brand {
        display: inline-flex;
    }

    .auth-mobile-brand img {
        width: 42px;
        height: 42px;
    }

    .auth-page .auth-main {
        place-items: start center;
        width: min(calc(100% - 32px), 600px);
        padding: 94px 0 28px;
    }
}

@media (max-width: 520px) {
    .auth-workspace {
        background: linear-gradient(160deg, #d6cdca 0%, #fff3ee 68%, #fff8f4 100%);
    }

    .auth-page .auth-main {
        width: min(calc(100% - 24px), 600px);
        padding-top: 84px;
    }

    .auth-page .auth-card {
        padding: 30px 22px;
        border-radius: 22px;
    }

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

    .auth-page .auth-heading > p:last-child {
        font-size: 14px;
    }

    .auth-page .auth-form {
        gap: 18px;
        margin-top: 26px;
    }

    .auth-input {
        min-height: 58px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .auth-page .auth-input input {
        min-height: 54px;
        font-size: 15px;
    }

    .auth-page .auth-form .button {
        min-height: 56px;
        border-radius: 14px;
    }

    .auth-form-options {
        gap: 10px;
    }

    .auth-form-options > a,
    .auth-remember {
        font-size: 13px;
    }
}

@media (max-width: 370px) {
    .auth-page .auth-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .auth-mobile-brand span {
        display: none;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input {
        transition: none;
    }
}

/* Public team invitation acceptance */
.invitation-accept-card{width:min(660px,100%)}.invitation-role-summary{padding:13px 15px;border:1px solid #eadde1;border-radius:12px;background:#fbf7f8;color:#4d586b}.invitation-state h2{margin:0 0 8px;color:#202b42}.invitation-state p{color:#566174}.invitation-terms{margin-top:12px}.invitation-terms span{color:#4d586b;line-height:1.55}.invitation-terms a{color:#7a1f37;font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.invitation-terms a:hover,.invitation-terms a:focus-visible{color:#9b2948;text-decoration-thickness:2px;outline-offset:3px}.password-control{display:flex;align-items:center;gap:8px}.password-control input{flex:1}.password-control button{border:0;background:transparent;color:#7a1f37;font-weight:650;cursor:pointer}.invitation-accept-card .auth-detail-list dd{overflow-wrap:anywhere}.invitation-accept-card .button[type=submit]{width:100%}@media(max-width:640px){.invitation-accept-card{padding:22px 18px}.invitation-accept-card .form-grid-two{grid-template-columns:1fr}}

/* Personal account registration */
.register-card{max-width:620px}.register-form{gap:18px!important}.register-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.auth-password-icon{display:grid;width:44px;min-width:44px;height:44px;place-items:center;padding:0}.auth-password-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.auth-password-icon.is-visible{color:#762e42;background:#f3dfe5}.register-password-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin:2px 0 0;padding:0;list-style:none;color:#81767d;font-size:12px}.register-password-rules li{display:flex;align-items:center;gap:7px;line-height:1.4}.register-password-rules li::before{display:grid;width:18px;height:18px;flex:0 0 18px;place-items:center;border:1px solid #d6ccd1;border-radius:50%;content:""}.register-password-rules li.is-valid{color:#327254}.register-password-rules li.is-valid::before{border-color:#83b89d;background:#e5f4eb;content:"✓";font-size:11px;font-weight:800}.register-password-match{color:#81767d;font-size:12px}.register-password-match.is-valid{color:#327254;font-weight:650}.register-password-match.is-invalid{color:#a43e51;font-weight:650}.register-consent-field{display:grid;gap:7px}.register-consent{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:10px;color:#62575e;font-size:13px;line-height:1.55;cursor:pointer}.register-consent input{width:20px;height:20px;margin:1px 0 0;accent-color:#8b3d54}.register-consent a,.register-account-links a{color:#7f2230;font-weight:650;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.register-account-links{display:flex;flex-wrap:wrap;gap:7px 16px;font-size:12px}.register-form [aria-invalid="true"]{scroll-margin-top:20px}.register-form .button[disabled]{cursor:wait;filter:saturate(.65);opacity:.78;transform:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:520px){.register-card{padding:26px 18px!important}.register-password-rules{grid-template-columns:1fr}.register-consent{font-size:12.5px}.auth-password-icon{width:42px;min-width:42px;height:42px}.register-form{gap:16px!important}}@media(max-width:370px){.register-card{padding-right:15px!important;padding-left:15px!important}.register-consent{grid-template-columns:19px minmax(0,1fr)}.register-consent input{width:19px;height:19px}}
