/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;

    min-height: 100%;
}


body {
    min-height: 100vh;

    background: #f8f7f9;

    color: #211d21;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


button,
input {
    font: inherit;
}


/* =========================================================
   PAGE
========================================================= */

.login-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 46%)
        1fr;
}


/* =========================================================
   BRAND
========================================================= */

.login-brand {
    position: relative;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    padding: 54px 58px 38px;

    background:
        linear-gradient(
            145deg,
            #171217 0%,
            #21141c 52%,
            #2b1421 100%
        );

    color: #fff;
}


.login-brand::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -210px;
    top: 15%;

    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
}


.login-brand::after {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    left: -400px;
    bottom: -370px;

    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: 50%;
}


.login-brand-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(2px);

    pointer-events: none;
}


.glow-one {
    width: 330px;
    height: 330px;

    right: -100px;
    bottom: 10%;

    background:
        rgba(255, 44, 145, .13);
}


.glow-two {
    width: 180px;
    height: 180px;

    left: 25%;
    top: -100px;

    background:
        rgba(255, 44, 145, .08);
}


.login-brand-content {
    position: relative;

    z-index: 2;
}


.login-logo img {
    display: block;

    width: auto;
    max-width: 180px;
    max-height: 78px;

    object-fit: contain;
}


.login-brand-text {
    max-width: 500px;

    margin-top: clamp(
        90px,
        15vh,
        170px
    );
}


.login-brand-eyebrow {
    display: inline-flex;

    margin-bottom: 18px;

    color: #ff76b6;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.login-brand-text h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(
        34px,
        3.4vw,
        55px
    );

    font-weight: 650;

    line-height: 1.07;

    letter-spacing: -.035em;
}


.login-brand-text h1 strong {
    color: #ff2c91;

    font-weight: 750;
}


.login-brand-text p {
    max-width: 430px;

    margin: 25px 0 0;

    color: rgba(255, 255, 255, .58);

    font-size: 14px;

    line-height: 1.7;
}


.login-brand-footer {
    position: relative;

    z-index: 2;

    display: flex;
    align-items: center;

    gap: 10px;

    color: rgba(255, 255, 255, .38);

    font-size: 12px;
}


.login-brand-dot {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #ff2c91;
}


/* =========================================================
   MAIN
========================================================= */

.login-main {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;
}


.login-container {
    width: 100%;
    max-width: 410px;
}


/* =========================================================
   MOBILE LOGO
========================================================= */

.login-mobile-logo {
    display: none;

    margin-bottom: 50px;
}


.login-mobile-logo img {
    max-width: 150px;
    max-height: 65px;

    object-fit: contain;
}


/* =========================================================
   HEADER
========================================================= */

.login-system {
    display: inline-block;

    margin-bottom: 13px;

    color: #ff2c91;

    font-size: 12px;
    font-weight: 750;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.login-header h2 {
    margin: 0;

    color: #211d21;

    font-size: 30px;
    font-weight: 750;

    letter-spacing: -.025em;
}


.login-header p {
    margin: 9px 0 0;

    color: #8e878d;

    font-size: 13px;
}


/* =========================================================
   MESSAGES
========================================================= */

.login-messages {
    margin-top: 24px;
}


.login-message {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    padding: 11px 13px;

    border: 1px solid #fedf89;
    border-radius: 9px;

    background: #fffaeb;
    color: #93370d;

    font-size: 12px;

    line-height: 1.45;
}


.login-message.success {
    border-color: #abefc6;

    background: #ecfdf3;
    color: #067647;
}


.login-message.error,
.login-message.danger {
    border-color: #fecdca;

    background: #fef3f2;
    color: #b42318;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    margin-top: 32px;
}


.login-field + .login-field {
    margin-top: 20px;
}


.login-field label {
    display: block;

    margin-bottom: 7px;

    color: #4d4850;

    font-size: 12px;
    font-weight: 650;
}


.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.login-input {
    position: relative;
}


.login-input > i {
    position: absolute;

    top: 50%;
    left: 14px;

    transform: translateY(-50%);

    color: #aaa3aa;

    font-size: 13px;

    pointer-events: none;
}


.login-input input {
    width: 100%;
    height: 48px;

    padding: 0 46px 0 42px;

    outline: none;

    border: 1px solid #ded9dd;
    border-radius: 10px;

    background: #fff;
    color: #211d21;

    font-size: 13px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.login-input input::placeholder {
    color: #b8b2b7;
}


.login-input input:focus {
    border-color: #ff2c91;

    box-shadow:
        0 0 0 4px rgba(255, 44, 145, .08);
}


/* =========================================================
   PASSWORD
========================================================= */

.login-password-toggle {
    position: absolute;

    top: 50%;
    right: 7px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    padding: 0;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #999299;

    cursor: pointer;
}


.login-password-toggle:hover {
    background: #f7f5f7;
    color: #555057;
}


/* =========================================================
   REMEMBER
========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 17px;
}


.login-remember {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin: 0;

    color: #6f6970;

    font-size: 12px;

    cursor: pointer;

    user-select: none;
}


.login-remember input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.login-checkbox {
    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d6d0d5;
    border-radius: 5px;

    background: #fff;

    transition:
        background .15s ease,
        border-color .15s ease;
}


.login-checkbox i {
    opacity: 0;

    color: #fff;

    font-size: 8px;
}


.login-remember input:checked +
.login-checkbox {
    border-color: #ff2c91;

    background: #ff2c91;
}


.login-remember input:checked +
.login-checkbox i {
    opacity: 1;
}


/* =========================================================
   SUBMIT
========================================================= */

.login-submit {
    width: 100%;
    height: 49px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 26px;

    padding: 0 20px;

    border: 0;
    border-radius: 10px;

    background: #ff2c91;
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(255, 44, 145, .18);

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}


.login-submit:hover {
    background: #e91e7d;

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(255, 44, 145, .22);
}


.login-submit:active {
    transform: translateY(0);
}


.login-submit i {
    font-size: 11px;
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 35px;

    color: #aaa4aa;

    font-size: 12px;
}


.login-footer i {
    font-size: 9px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .login-page {
        display: block;
    }


    .login-brand {
        display: none;
    }


    .login-main {
        min-height: 100vh;

        padding: 40px 24px;
    }


    .login-mobile-logo {
        display: block;
    }

}


@media (max-width: 480px) {

    .login-main {
        align-items: flex-start;

        padding:
            35px
            20px;
    }


    .login-mobile-logo {
        margin-bottom: 55px;
    }


    .login-header h2 {
        font-size: 27px;
    }


    .login-form {
        margin-top: 28px;
    }

}

/* =========================================================
   ESTADOS DE ATIVAÇÃO
========================================================= */

.login-state-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 14px;

    font-size: 20px;
}


.login-state-success {
    background: #ecfdf3;
    color: #079455;
}


.login-state-error {
    background: #fef3f2;
    color: #d92d20;
}


.login-submit-link {
    text-decoration: none;

    margin-top: 30px;
}

/* =========================================================
   CONVITES / ATIVAÇÃO DE CONTA
   ========================================================= */


/* ---------------------------------------------------------
   FORMULÁRIO DE CONVITE
   --------------------------------------------------------- */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 13px;
    font-weight: 600;
    color: #3d373d;
}


/* ---------------------------------------------------------
   INPUT
   --------------------------------------------------------- */

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrap input {
    width: 100%;
    height: 48px;

    padding: 0 44px 0 44px;

    border: 1px solid #e5dfe3;
    border-radius: 10px;

    background: #ffffff;

    font-family: inherit;
    font-size: 14px;
    color: #211d21;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

    box-sizing: border-box;
}

.login-input-wrap input::placeholder {
    color: #aaa3aa;
}

.login-input-wrap input:focus {
    border-color: #ff2c91;

    box-shadow:
        0 0 0 3px rgba(255, 44, 145, 0.10);
}


/* ícone esquerdo */

.login-input-wrap > i:first-child {
    position: absolute;
    left: 16px;

    color: #aaa3aa;

    font-size: 14px;

    pointer-events: none;

    z-index: 2;
}


/* ícone direito */

.login-input-wrap > i:last-child:not(:first-child) {
    position: absolute;
    right: 16px;

    color: #aaa3aa;

    font-size: 12px;

    pointer-events: none;
}


/* ---------------------------------------------------------
   EMAIL BLOQUEADO
   --------------------------------------------------------- */

.login-input-wrap input:disabled {
    background: #f7f5f7;

    color: #746d73;

    border-color: #ebe6e9;

    cursor: not-allowed;

    opacity: 1;
}

.login-input-wrap input:disabled + i {
    color: #b6afb5;
}


/* ---------------------------------------------------------
   BOTÃO PRINCIPAL
   --------------------------------------------------------- */

.login-submit {
    width: 100%;
    min-height: 50px;

    margin-top: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 0;
    border-radius: 10px;

    background: #ff2c91;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;

    box-sizing: border-box;
}

.login-submit:hover {
    background: #e91e7d;

    box-shadow:
        0 8px 22px rgba(255, 44, 145, 0.20);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-submit i {
    font-size: 12px;
}


/* ---------------------------------------------------------
   MENSAGENS
   --------------------------------------------------------- */

.login-alerts {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-bottom: 20px;
}

.login-alert {
    padding: 12px 14px;

    border-radius: 9px;

    font-size: 12px;
    line-height: 1.5;

    border: 1px solid transparent;
}

.login-alert.success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.login-alert.warning {
    color: #854d0e;
    background: #fefce8;
    border-color: #fde68a;
}

.login-alert.error,
.login-alert.danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.login-footer {
    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid #f0ecef;

    text-align: center;

    font-size: 12px;
    color: #aaa3aa;
}


/* ---------------------------------------------------------
   PÁGINAS DE ESTADO
   convite inválido / convite aceite
   --------------------------------------------------------- */

.invite-status {
    padding: 12px 0 8px;

    text-align: center;
}

.invite-status-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0f7;

    color: #ff2c91;

    font-size: 30px;
}

.invite-status p {
    max-width: 360px;

    margin:
        0 auto
        26px;

    color: #8e878d;

    font-size: 14px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .login-form {
        gap: 16px;
    }

    .login-input-wrap input {
        height: 50px;
    }

    .login-submit {
        min-height: 52px;
    }

}

/* =========================================================
   CONVITES
   ========================================================= */

.login-input-disabled input {
    background: #f5f3f5;
    color: #8e878d;
    cursor: not-allowed;
}

.login-input-lock {
    position: absolute;
    right: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #aaa3aa;
    font-size: 12px;

    pointer-events: none;
}


/* ESTADO */

.invite-status {
    margin-top: 28px;
    text-align: center;
}

.invite-status-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0f7;
    color: #ff2c91;

    font-size: 22px;
}

.invite-status-icon.success {
    background: #f0fdf4;
    color: #16a34a;
}

.invite-status p {
    max-width: 360px;

    margin: 0 auto 28px;

    color: #8e878d;

    font-size: 13px;
    line-height: 1.65;
}

.invite-status .login-submit {
    text-decoration: none;
}