﻿/* ==========================================================
   SITE-AWARE IDENTITY
========================================================== */

.ss-identity-main {
    min-height: calc(100vh - 290px);
    padding: 56px 20px 72px;
    background: var(--ss-cream);
}

.site-identity-agora-header {
    padding: 24px 32px;
    background: #071020;
}

.site-identity-agora-brand {
    color: white;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .16em;
}

.ss-identity-agora-mark {
    display: grid;
    justify-items: end;
    gap: 2px;
    color: var(--ss-muted);
    font-size: .7rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .13em;
}

    .ss-identity-agora-mark strong {
        color: var(--adaptive-button-color);
        font-size: 1rem;
        letter-spacing: .18em;
    }

.ss-identity-footer {
    min-height: 155px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

/* Login and account form container */

.site-identity-content {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 36px;
    border-radius: 18px;
    background: var(--adaptive-card-bg, white);
    box-shadow: 0 24px 65px rgba(31, 36, 28, .13);
}

.site-identity-content-wide {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 34px;
    border-radius: 18px;
    background: var(--adaptive-card-bg, white);
    box-shadow: 0 24px 65px rgba(31, 36, 28, .13);
}

.site-identity-kicker {
    margin-bottom: 9px;
    color: var(--adaptive-button-color);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.site-identity-content h1,
.site-identity-content-wide h1 {
    margin-bottom: 10px;
    color: var(--ss-ink);
}

.site-identity-description {
    margin-bottom: 26px;
    color: var(--ss-muted);
    line-height: 1.7;
}

/* Normalize Identity inputs */

.site-identity-content .form-control,
.site-identity-content-wide .form-control {
    min-height: 52px;
    border: 1px solid rgba(31, 36, 28, .16);
    border-radius: 10px;
    padding: 12px 14px;
}

    .site-identity-content .form-control:focus,
    .site-identity-content-wide .form-control:focus {
        border-color: var(--adaptive-button-color);
        box-shadow: 0 0 0 .2rem color-mix( in srgb, var(--adaptive-button-color) 18%, transparent);
    }

.site-identity-content .btn-primary,
.site-identity-content-wide .btn-primary {
    min-height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--adaptive-button-color);
    font-weight: 800;
}

    .site-identity-content .btn-primary:hover,
    .site-identity-content-wide .btn-primary:hover {
        background: var(--adaptive-button-hover);
    }

.site-identity-content a,
.site-identity-content-wide a {
    color: var(--adaptive-button-color);
}

/* Manage navigation */

.site-identity-content-wide .nav-pills .nav-link {
    color: var(--ss-ink);
    border-radius: 9px;
}

    .site-identity-content-wide .nav-pills .nav-link.active {
        color: white;
        background: var(--adaptive-button-color);
    }

@media (max-width: 760px) {
    .ss-identity-main {
        padding: 34px 14px 52px;
    }

    .site-identity-content,
    .site-identity-content-wide {
        padding: 24px;
    }

    .ss-identity-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 36px 0;
    }

    .ss-identity-agora-mark {
        display: none;
    }
}


.ss-identity-main {
    position: relative;
    min-height: 65vh;
}

.ss-identity-hero {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .12;
}

.ss-identity-content {
    position: relative;
    z-index: 2;
}

/* ==========================================================
   AGORA SITE REGISTRATION
========================================================== */

.ss-register-form {
    margin-top: 28px;
}

.ss-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.ss-register-full {
    grid-column: 1 / -1;
}

.ss-register-notice {
    margin: 4px 0 24px;
    padding: 14px 16px;
    border-left: 4px solid var(--adaptive-accent, var(--ss-gold));
    background: color-mix( in srgb, var(--adaptive-accent, var(--ss-gold)) 8%, white);
    color: var(--ss-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.ss-registration-email {
    margin: 16px 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(31, 36, 28, .12);
    background: var(--ss-cream);
    color: var(--ss-ink);
    font-weight: 700;
}

@media (max-width: 680px) {
    .ss-register-grid {
        grid-template-columns: 1fr;
    }

    .ss-register-full {
        grid-column: auto;
    }
}

/* ==========================================================
   SITE IDENTITY FORM SURFACE

   Identity forms use a light work surface regardless of the
   surrounding Site theme. Form copy therefore needs its own
   readable foreground instead of inheriting dark-auth colors.
========================================================== */

.ss-auth-page-panel {
    color: #1f241c;
}

    .ss-auth-page-panel .auth-label,
    .ss-auth-page-panel .auth-checkbox-label,
    .ss-auth-page-panel .auth-form-footer,
    .ss-auth-page-panel .form-check-label {
        color: #1f241c;
    }

    .ss-auth-page-panel .auth-input {
        color: #1f241c;
    }

        .ss-auth-page-panel .auth-input::placeholder {
            color: rgba(31, 36, 28, .48);
        }

    .ss-auth-page-panel .auth-button {
        border: none;
        border-radius: var(--ss-button-radius);
        background: var(--adaptive-button-color);
        box-shadow: none;
        appearance: none;
        cursor: pointer;
    }

        .ss-auth-page-panel .auth-button:hover {
            background: var(--adaptive-button-hover);
        }

    /* ==========================================================
   SITE IDENTITY LINKS
========================================================== */

    .ss-auth-page-panel a {
        color: var(--adaptive-button-color);
        text-decoration: none;
        font-weight: 600;
        transition: color .18s ease, opacity .18s ease;
    }

        .ss-auth-page-panel a:hover {
            color: var(--adaptive-button-hover);
            text-decoration: none;
        }

        .ss-auth-page-panel a:focus-visible {
            outline: 2px solid var(--adaptive-button-color);
            outline-offset: 3px;
            border-radius: 3px;
        }

/* ============================================================
   SITE IDENTITY - FULL VIEWPORT SHELL

   Prevent the underlying Agora/application background from
   bleeding through beneath short Identity pages.

   Identity pages should visually remain part of the public
   site's theme from top to bottom.
============================================================ */

html {
    min-height: 100%;
    background: var(--ss-footer-bg);
}

body.ss-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--ss-footer-bg);
}

    body.ss-body > main {
        flex: 1 0 auto;
        background: var(--ss-cream);
    }

    body.ss-body > .ss-footer {
        flex-shrink: 0;
    }