﻿/* =========================================================
   AGORA PLATFORM IDENTITY
   Used only by Agora login/account pages.
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

.agora-identity-body {
    margin: 0;
    min-height: 100vh;
    background: #070c19;
    color: white;
    font-family: "Inter", sans-serif;
}

.agora-identity-shell {
    display: grid;
    grid-template-columns: minmax(480px, 1.1fr) minmax(520px, .9fr);
    min-height: 100vh;
}

/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.agora-identity-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 92px 72px 48px;
    overflow: hidden;
    background: radial-gradient( circle at 58% 24%, rgba(124, 58, 237, .22), transparent 48% ), radial-gradient( ellipse at 94% 94%, rgba(249, 115, 22, .10), transparent 40% ), linear-gradient( 135deg, #01071a 0%, #071022 40%, #10152a 62%, #171521 100% );
    border-right: 1px solid rgba(255,255,255,.05);
}

    .agora-identity-brand-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, #01071a 0%, #01071a 28%, rgba(1, 7, 26, .96) 38%, rgba(1, 7, 26, .62) 48%, transparent 62% );
        pointer-events: none;
        z-index: 0;
    }

    .agora-identity-brand-panel::after {
        content: "";
        position: absolute;
        right: -220px;
        bottom: -220px;
        width: 560px;
        height: 560px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(249,115,22,.14), transparent 72% );
        filter: blur(80px);
        pointer-events: none;
        z-index: 0;
    }

@media (max-width: 991px) {
    .agora-identity-brand-panel {
        background: #01071a;
        padding: 24x 20px;
    }

        .agora-identity-brand-panel::before,
        .agora-identity-brand-panel::after {
            display: none;
        }

    .agora-identity-brand-content {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: none;
    }

    .hs-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 8px;
        margin-bottom: -18px;
    }

    .hs-brand-logo2 {
        height: 56px !important;
        width: auto !important;
    }
}

.agora-identity-brand-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.agora-identity-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: white;
    text-decoration: none;
}

.agora-identity-logo-ring {
    width: 58px;
    height: 58px;
    padding: 2px;
    border-radius: 999px;
    background: conic-gradient( from 180deg, #60a5fa, #8b5cf6, #ec4899, #60a5fa );
    box-shadow: 0 0 32px rgba(139, 92, 246, .20);
}

.agora-identity-logo-core {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient( circle at top left, #182338, #040817 );
}

.agora-identity-brand-name {
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .18em;
}

.agora-identity-brand-subtitle {
    margin-top: 8px;
    color: #b8c4da;
    font-size: .69rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .22em;
}

.agora-identity-kicker {
    margin-top: 58px;
    color: #f2b764;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .20em;
}

.agora-identity-statement {
    max-width: 720px;
    margin: 26px 0 0;
    color: #ffffff;
    font-size: clamp(3.25rem, 5vw, 5.25rem);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -.045em;
}

.agora-identity-description {
    max-width: 650px;
    margin: 30px 0 0;
    color: #c9d2e1;
    font-size: 1.05rem;
    line-height: 1.75;
}

.agora-identity-brand-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    color: rgba(255,255,255,.44);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* =========================================================
   RIGHT FORM PANEL
========================================================= */

.agora-identity-form-panel {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-top: 120px;
    justify-content: center;
    min-width: 0;
    padding: 60px;
    background: radial-gradient( circle at 90% 88%, rgba(180, 83, 9, .19), transparent 34% ), linear-gradient( 160deg, #111725, #090e1b 60% );
}

.agora-identity-form-wrap {
    width: 100%;
    max-width: 520px;
}

.agora-identity-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 42px;
    border-radius: 28px;
    border: 1px solid rgba(148,163,184,.13);
    background: linear-gradient( 180deg, rgba(20, 27, 45, .97), rgba(12, 18, 32, .98) );
    box-shadow: 0 26px 70px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.035);
}

.agora-identity-card-kicker {
    margin-bottom: 20px;
    color: #f2b764;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.agora-identity-card-title {
    margin: 0;
    color: white;
    font-size: 2.15rem;
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.agora-identity-card-description {
    margin: 14px 0 0;
    color: #9ca9bd;
    font-size: .96rem;
    line-height: 1.65;
}

/* =========================================================
   FORM FIELDS
========================================================= */

.agora-identity-form {
    margin-top: 30px;
}

.agora-identity-field {
    margin-bottom: 22px;
}

.agora-identity-label {
    display: block;
    margin-bottom: 10px;
    color: #e9edf5;
    font-size: .87rem;
    font-weight: 700;
}

.agora-identity-input {
    width: 100%;
    min-height: 54px;
    padding: 0 17px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.16);
    outline: none;
    background: rgba(255,255,255,.025);
    color: white;
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

    .agora-identity-input:focus {
        border-color: rgba(139,92,246,.72);
        background: rgba(255,255,255,.045);
        box-shadow: 0 0 0 3px rgba(139,92,246,.14);
    }

    .agora-identity-input::placeholder {
        color: rgba(255,255,255,.27);
    }

.agora-identity-button {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient( 135deg, #7c3aed, #2563eb );
    color: white;
    font: inherit;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(79,70,229,.27);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .agora-identity-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 42px rgba(79,70,229,.36);
    }

.agora-identity-link {
    color: #a9c8ff;
    text-decoration: none;
    transition: color .18s ease;
}

    .agora-identity-link:hover {
        color: white;
    }

.agora-identity-validation {
    display: block;
    margin-top: 7px;
    color: #fda4af;
    font-size: .82rem;
}

.agora-identity-validation-summary {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(244,63,94,.20);
    background: rgba(244,63,94,.08);
    color: #fecdd3;
    font-size: .88rem;
    line-height: 1.5;
}

    .agora-identity-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

/* =========================================================
   MESSAGES
========================================================= */

.agora-identity-message {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 15px;
    font-size: .88rem;
    line-height: 1.5;
}

    .agora-identity-message.success {
        border: 1px solid rgba(16,185,129,.22);
        background: rgba(16,185,129,.09);
        color: #a7f3d0;
    }

    .agora-identity-message.error {
        border: 1px solid rgba(244,63,94,.22);
        background: rgba(244,63,94,.09);
        color: #fecdd3;
    }

.agora-identity-platform-note {
    position: absolute;
    right: 28px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.34);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
}

.agora-identity-platform-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 13px rgba(139,92,246,.72);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .agora-identity-shell {
        grid-template-columns: 1fr;
    }

    .agora-identity-brand-panel {
        min-height: auto;
        padding: 34px 30px;
    }

    .agora-identity-kicker,
    .agora-identity-statement,
    .agora-identity-description,
    .agora-identity-brand-footer {
        display: none;
    }

    .agora-identity-form-panel {
        min-height: calc(100vh - 126px);
        padding: 38px 24px 70px;
    }
}

@media (max-width: 600px) {

    .agora-identity-brand-panel {
        padding: 12px 20px 10px;
        min-height: auto;
    }

    .agora-identity-logo-ring {
        width: 48px;
        height: 48px;
    }

    .agora-identity-brand-name {
        font-size: 1.55rem;
    }

    .agora-identity-brand-subtitle {
        max-width: 240px;
        font-size: .58rem;
    }

    .agora-identity-form-panel {
        align-items: flex-start;
        padding: 14px 14px 70px;
    }

    .agora-identity-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .agora-identity-card-title {
        font-size: 1.75rem;
    }

    .agora-identity-platform-note {
        right: 18px;
        bottom: 18px;
    }
}


/* Chrome Autofill */

.agora-identity-input:-webkit-autofill,
.agora-identity-input:-webkit-autofill:hover,
.agora-identity-input:-webkit-autofill:focus,
.agora-identity-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.025) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.agora-identity-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 26px;
}

.agora-identity-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #7c3aed;
    cursor: pointer;
}

.agora-identity-checkbox-label {
    color: #d9e2f2;
    font-size: .9rem;
    cursor: pointer;
}

.agora-identity-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agora-identity-footer {
    margin-top: 24px;
    text-align: center;
    color: #9ca9bd;
    font-size: .9rem;
}

.agora-identity-field:last-of-type {
    margin-bottom: 0;
}

.agora-identity-input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    font-size: .95rem;
    outline: none;
    transition: .2s;
}

    .agora-identity-input:focus {
        border-color: #8b5cf6;
        box-shadow: 0 0 0 3px rgba(139,92,246,.15);
    }

.agora-identity-button-orange {
    background: linear-gradient(180deg,#d97706,#c25f00);
    box-shadow: 0 12px 28px rgba(217,119,6,.35);
}

.agora-password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

    .agora-password-header a {
        color: #d97706;
        font-weight: 600;
        text-decoration: none;
    }

        .agora-password-header a:hover {
            color: #f59e0b;
        }