/* Sign-in and sign-up pages (Views/Licence/Login, Views/Licence/Signup).
   A white card for the action, a plum showcase for the social proof, as on most SaaS sign-in pages. */

:root {
    --tp-plum: #903163;
    --tp-plum-dark: #3d1229;
    --tp-plum-deep: #2a0c1c;
    --tp-text: #1b1b1f;
    --tp-text-muted: #6b6b76;
    --tp-border: #e6e3e8;
    --tp-star: #ffb400;
}

.tp-auth {
    min-height: 100vh;
    display: flex;
    padding: 24px;
    gap: 24px;
    font-family: Poppins, Helvetica, sans-serif;
    background-color: var(--tp-plum-deep);
    background-image:
        radial-gradient(circle at 85% 0%, rgba(144, 49, 99, .55), transparent 45%),
        radial-gradient(circle at 60% 100%, rgba(144, 49, 99, .35), transparent 40%),
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: auto, auto, 72px 72px, 72px 72px;
}

/* ---------- Card ---------- */

.tp-auth__card {
    flex: 0 0 46%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.tp-auth__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.tp-auth__logo {
    height: 44px;
    width: auto;
    align-self: center;
    margin-bottom: 32px;
}

.tp-auth__title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--tp-text);
    text-align: center;
    margin-bottom: 8px;
}

.tp-auth__subtitle {
    font-size: 1rem;
    color: var(--tp-text-muted);
    text-align: center;
    margin-bottom: 28px;
}

/* Microsoft sign-in button, dark variant of the Microsoft identity branding guidelines. */
.tp-auth__ms-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #2f2f2f;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, opacity .15s ease;
}

.tp-auth__ms-button:hover,
.tp-auth__ms-button:focus-visible {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

.tp-auth__ms-button:focus-visible {
    outline: 3px solid rgba(144, 49, 99, .45);
    outline-offset: 2px;
}

.tp-auth__ms-button.disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}

.tp-auth__ms-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tp-auth__hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: .9rem;
    color: var(--tp-text-muted);
}

.tp-auth__hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    fill: var(--tp-plum);
}

.tp-auth__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.tp-auth__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: .95rem;
    color: var(--tp-text);
}

.tp-auth__benefits svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    fill: var(--tp-plum);
}

.tp-auth__terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: .95rem;
    color: var(--tp-text);
    cursor: pointer;
}

.tp-auth__terms input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--tp-plum);
    cursor: pointer;
}

.tp-auth__terms a,
.tp-auth__switch a {
    color: var(--tp-plum);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-auth__terms a:hover,
.tp-auth__switch a:hover {
    color: var(--tp-plum-dark);
}

.tp-auth__divider {
    height: 1px;
    background: var(--tp-border);
    margin: 28px 0 20px;
}

.tp-auth__switch {
    text-align: center;
    font-size: .95rem;
    color: var(--tp-text-muted);
}

.tp-auth__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    font-size: .85rem;
    color: var(--tp-text-muted);
}

.tp-auth__stars {
    display: inline-flex;
    gap: 2px;
}

.tp-auth__stars svg {
    width: 15px;
    height: 15px;
    fill: var(--tp-star);
}

.tp-auth__footer {
    text-align: center;
    font-size: .85rem;
    color: var(--tp-text-muted);
    padding-top: 24px;
}

.tp-auth__footer a {
    color: var(--tp-text-muted);
    font-weight: 600;
}

/* ---------- Showcase ---------- */

.tp-showcase {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 40px;
    color: #fff;
}

.tp-showcase__quote {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
}

.tp-showcase__mark {
    width: 40px;
    height: 32px;
    fill: rgba(255, 255, 255, .35);
    margin-bottom: 20px;
}

.tp-showcase__slide {
    display: none;
}

.tp-showcase__slide.is-active {
    display: block;
    animation: tp-fade .5s ease;
}

.tp-showcase__text {
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 600;
    color: #fff;
    margin: 0 0 28px;
    quotes: none;
}

.tp-showcase__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tp-showcase__avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
}

.tp-showcase__product {
    font-weight: 700;
    font-size: 1.05rem;
}

.tp-showcase__source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .65);
}

.tp-showcase__source .tp-auth__stars svg {
    width: 13px;
    height: 13px;
}

.tp-showcase__dots {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.tp-showcase__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.tp-showcase__dot.is-active {
    width: 24px;
    background: #fff;
}

.tp-showcase__suite {
    max-width: 720px;
    width: 100%;
    margin: 48px auto 0;
}

.tp-showcase__suite-title {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    text-align: center;
    margin-bottom: 18px;
}

.tp-showcase__apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-showcase__app {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: .85rem;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
}

.tp-showcase__app img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
}

@keyframes tp-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tp-showcase__slide.is-active { animation: none; }
    .tp-auth__ms-button, .tp-showcase__dot { transition: none; }
}

/* ---------- Responsive ---------- */

/* Below lg the showcase goes, the card takes the whole screen; the rating line stays in the card. */
@media (max-width: 991.98px) {
    .tp-auth {
        padding: 0;
        background: #fff;
    }

    .tp-auth__card {
        flex: 1;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        padding: 32px 16px;
    }

    .tp-showcase {
        display: none;
    }
}

@media (min-width: 1400px) {
    .tp-showcase__text { font-size: 1.85rem; }
}
