
/* =========================================================
   MANDACARU
   LOGIN
   CSS ESPECÍFICO
   ========================================================= */


/* =========================================================
   PÁGINA
   ========================================================= */
.login-page{
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--secondary);
    overflow: hidden;
    position: relative;
    text-align: center;
    margin: auto;
    justify-content: center;
}


/* =========================================================
   DECORAÇÃO DO FUNDO
   ========================================================= */

.login-page::before {

    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    left: -280px;
    bottom: -300px;

    border-radius: 50%;

    border:
        90px solid
        rgba(255, 255, 255, 0.025);

    pointer-events: none;
}

.login-page::after {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -250px;
    top: -250px;

    border-radius: 50%;

    background:
        rgba(212, 154, 69, 0.07);

    pointer-events: none;
}


/* =========================================================
   ÁREA DA MARCA
   ========================================================= */

.login-brand {

    flex: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    padding: 60px;

    color: #ffffff;
}

.login-brand-content {

    width: 100%;

    max-width: 470px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   MARCA
   ========================================================= */

.brand-symbol {

    width: 70px;
    height: 70px;

    margin-bottom: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);
}


/*
   Pequeno símbolo abstrato inspirado
   no mandacaru.
*/

.brand-symbol::before {

    content: "";

    width: 12px;
    height: 43px;

    border-radius: 20px;

    background: var(--accent);

    position: absolute;

    left: 28px;
    top: 13px;
}

.brand-symbol::after {

    content: "";

    width: 28px;
    height: 12px;

    border-radius: 20px;

    border:
        6px solid var(--accent);

    border-top: 0;
    border-left: 0;

    position: absolute;

    left: 34px;
    top: 31px;

    transform: rotate(-25deg);
}


.login-brand h1 {

    margin: 0 0 8px;

    color: #ffffff;

    font-size: clamp(42px, 5vw, 64px);

    line-height: .95;

    letter-spacing: -2px;

    font-weight: 800;
}

.login-brand .brand-subtitle {

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 15px;

    letter-spacing: 2px;

    text-transform: uppercase;

    font-weight: 600;
}

.brand-line {

    width: 55px;
    height: 3px;

    margin-top: 28px;

    background: var(--accent);

    border-radius: 10px;
}

.brand-description {

    margin-top: 28px;

    max-width: 370px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   ÁREA DO LOGIN
   ========================================================= */

.login-area {

    width: 48%;

    min-width: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    position: relative;

    z-index: 3;
}


/* =========================================================
   CARD
   ========================================================= */

.login-card {

    width: 100%;

    max-width: 430px;

    padding: 46px;

    background: var(--surface);

    border-radius: 24px;

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.20);

    animation:
        loginEnter .45s ease both;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.login-header {

    margin-bottom: 32px;
}

.login-header h2 {

    margin-bottom: 7px;

    font-size: 25px;

    font-weight: 750;

    letter-spacing: -.4px;
}

.login-header p {

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================================
   FORMULÁRIO
   ========================================================= */

.login-form .form-group {

    margin-bottom: 19px;
}


/* =========================================================
   ÍCONE DO INPUT
   ========================================================= */

.input-wrapper {

    position: relative;
}

.input-wrapper .input-icon {

    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);

    font-size: 16px;

    pointer-events: none;
}

.input-wrapper .form-input {

    padding-left: 43px;
}


/* =========================================================
   BOTÃO
   ========================================================= */

.login-button {

    width: 100%;

    height: 53px;

    margin-top: 7px;

    border-radius: 12px;

    background: var(--primary);

    color: #ffffff;

    font-size: 14px;

    font-weight: 750;

    letter-spacing: .4px;

    box-shadow:
        0 7px 18px
        rgba(184, 92, 56, .22);

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.login-button:hover {

    background: var(--primary-dark);

    transform: translateY(-1px);

    box-shadow:
        0 10px 23px
        rgba(184, 92, 56, .28);
}

.login-button:active {

    transform: translateY(1px);

    box-shadow:
        0 4px 10px
        rgba(184, 92, 56, .20);
}

.login-button:disabled {

    opacity: .65;

    cursor: wait;

    transform: none;
}


/* =========================================================
   MENSAGEM
   ========================================================= */

.login-message {

    min-height: 20px;

    margin-top: 15px;

    text-align: center;

    font-size: 13px;

    font-weight: 550;
}

.login-message.error {
    color: var(--danger);
}

.login-message.success {
    color: var(--success);
}


/* =========================================================
   RODAPÉ
   ========================================================= */

.login-footer {

    margin-top: 28px;

    padding-top: 20px;

    border-top:
        1px solid var(--border-light);

    text-align: center;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   ANIMAÇÃO
   ========================================================= */

@keyframes loginEnter {

    from {

        opacity: 0;

        transform:
            translateY(15px)
            scale(.985);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .login-brand {

        display: none;
    }

    .login-area {

        width: 100%;

        min-width: 0;

        padding: 25px;
    }

    .login-page {

        background:
            var(--secondary);
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 480px) {

    .login-area {

        padding: 15px;
    }

    .login-card {

        padding: 32px 24px;

        border-radius: 20px;
    }

    .login-header {

        margin-bottom: 26px;
    }

    .login-header h2 {

        font-size: 23px;
    }

    .login-button {

        height: 52px;
    }
}