

/* =====================================================
    VARIÁVEIS
===================================================== */

:root {

    --brown-dark: #3B2418;

    --brown: #51362A;

    --brown-light: #704832;

    --sand: #E8D5B5;

    --sand-light: #F3E7D3;

    --background: #F8F1E5;

    --terracotta: #C96B45;

    --terracotta-dark: #A95232;

    --orange: #E29A5B;

    --text: #51362A;

    --text-light: #8A7567;

    --white: #FFFFFF;

    --border: #E0CFB7;

    --shadow:
        0 20px 60px
        rgba(59, 36, 24, .14);

}


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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    min-height: 100%;
}


body {

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

    background:
        linear-gradient(
            135deg,
            var(--background),
            var(--sand-light)
        );

    color: var(--text);

    min-height: 100vh;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
    LAYOUT
===================================================== */

.auth-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        1fr 1fr;
}


/* =====================================================
    LADO ESQUERDO
===================================================== */

.auth-brand {

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px;

    background:
        linear-gradient(
            145deg,
            var(--brown-dark),
            var(--brown)
        );

    color: var(--white);
}


.auth-brand::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -180px;
    left: -180px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.08);
}


.auth-brand::after {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -150px;
    bottom: -130px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.07);
}


.brand-content {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 480px;

    text-align: center;
}


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

.brand-logo {

    width: 125px;
    height: 125px;

    margin:
        0 auto 28px;

    object-fit: contain;

    border-radius: 50%;

    background: var(--white);

    padding: 8px;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.20);
}


.brand-content h1 {

    margin-bottom: 15px;

    color: var(--white);

    font-size: 40px;

    line-height: 1.15;
}


.brand-content h1 span {

    color: var(--orange);
}


.brand-content > p {

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

    font-size: 16px;

    line-height: 1.7;
}


/* =====================================================
    BENEFÍCIOS
===================================================== */

.brand-features {

    margin-top: 35px;

    display: flex;

    flex-direction: column;

    gap: 13px;

    text-align: left;
}


.brand-feature {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 16px;

    border-radius: 14px;

    background:
        rgba(255,255,255,.07);

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

    font-size: 13px;
}


.brand-feature-icon {

    width: 35px;
    height: 35px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:
        rgba(226,154,91,.15);

    color: var(--orange);

    font-size: 18px;
}


/* =====================================================
    LADO DIREITO
===================================================== */

.auth-panel {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px 30px;

    background:
        var(--background);
}


.auth-box {

    width: 100%;

    max-width: 430px;
}


/* =====================================================
    CABEÇALHO
===================================================== */

.auth-header {

    margin-bottom: 28px;

    text-align: center;
}


.auth-header h2 {

    margin-bottom: 8px;

    color: var(--brown-dark);

    font-size: 30px;

    line-height: 1.2;
}


.auth-header p {

    color: var(--text-light);

    font-size: 14px;
}


/* =====================================================
    FORMULÁRIO
===================================================== */

.form-group {

    margin-bottom: 17px;
}


.form-group label {

    display: block;

    margin-bottom: 7px;

    color: var(--brown-dark);

    font-size: 13px;

    font-weight: 700;
}


.input-wrapper {

    position: relative;
}


.input-icon {

    position: absolute;

    left: 14px;

    top: 50%;

    transform:
        translateY(-50%);

    font-size: 17px;

    opacity: .65;
}


.form-control {

    width: 100%;

    height: 50px;

    padding:
        0 15px 0 45px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    outline: none;

    background:
        rgba(255,255,255,.75);

    color: var(--text);

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


.form-control:focus {

    background:
        var(--white);

    border-color:
        var(--terracotta);

    box-shadow:
        0 0 0 4px
        rgba(201,107,69,.10);
}


.form-control::placeholder {

    color:
        #B5A598;
}


/* =====================================================
    SENHA / ESQUECI
===================================================== */

.password-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 8px;
}


.password-row label {

    margin-bottom: 0;
}


.forgot-password {

    color:
        var(--terracotta);

    font-size: 12px;

    font-weight: 700;
}


.forgot-password:hover {

    color:
        var(--terracotta-dark);
}


/* =====================================================
    BOTÃO PRINCIPAL
===================================================== */

.btn-main {

    width: 100%;

    height: 52px;

    margin-top: 5px;

    border: none;

    border-radius: 13px;

    background:
        var(--terracotta);

    color:
        var(--white);

    font-size: 14px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(201,107,69,.22);

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


.btn-main:hover {

    background:
        var(--terracotta-dark);

    transform:
        translateY(-1px);

    box-shadow:
        0 12px 25px
        rgba(201,107,69,.28);
}


/* =====================================================
    DIVISOR
===================================================== */

.divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 25px 0;

    color:
        #A8988C;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;
}


.divider::before,
.divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background:
        var(--border);
}


/* =====================================================
    LOGIN SOCIAL
===================================================== */

.social-buttons {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}


.social-button {

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        var(--white);

    color:
        var(--brown-dark);

    font-size: 13px;

    font-weight: 700;

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


.social-button:hover {

    border-color:
        var(--terracotta);

    box-shadow:
        0 5px 15px
        rgba(59,36,24,.08);

    transform:
        translateY(-1px);
}


.social-icon {

    font-size: 18px;

    font-weight: 800;
}


/* =====================================================
    TROCA LOGIN / CADASTRO
===================================================== */

.auth-switch {

    margin-top: 25px;

    text-align: center;

    color:
        var(--text-light);

    font-size: 13px;
}


.auth-switch button {

    border: none;

    background: none;

    color:
        var(--terracotta);

    font-weight: 800;
}


.auth-switch button:hover {

    color:
        var(--terracotta-dark);

    text-decoration:
        underline;
}


/* =====================================================
    CADASTRO ESCONDIDO
===================================================== */

.register-form {

    display: none;
}


.register-form.active {

    display: block;
}


.login-form.hidden {

    display: none;
}


/* =====================================================
    TERMOS
===================================================== */

.terms {

    margin-top: 16px;

    color:
        var(--text-light);

    font-size: 11px;

    line-height: 1.6;

    text-align: center;
}


.terms a {

    color:
        var(--terracotta);

    font-weight: 700;
}


/* =====================================================
   VOLTAR
===================================================== */

.back-home {

    position: fixed;

    top: 20px;

    left: 25px;

    z-index: 10;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 9px 14px;

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 10px;

    background:
        rgba(90, 56, 37, .82);

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

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 6px 18px rgba(59, 36, 24, .16);

    backdrop-filter:
        blur(6px);

    -webkit-backdrop-filter:
        blur(6px);

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


.back-home:hover {

    background:
        rgba(90, 56, 37, .95);

    color:
        var(--color-white);

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 20px rgba(59, 36, 24, .22);
}
/* =====================================================
    RESPONSIVO
===================================================== */

@media (max-width: 850px) {

    .auth-page {

        grid-template-columns: 1fr;
    }


    .auth-brand {

        min-height: 310px;

        padding: 45px 25px;
    }


    .brand-logo {

        width: 85px;
        height: 85px;

        margin-bottom: 18px;
    }


    .brand-content h1 {

        font-size: 29px;
    }


    .brand-content > p {

        font-size: 14px;
    }


    .brand-features {

        display: none;
    }


    .auth-panel {

        padding:
            45px 20px 60px;
    }


    .back-home {

        position: absolute;

        top: 15px;

        left: 15px;
    }

}


@media (max-width: 480px) {

    .auth-brand {

        min-height: 270px;
    }


    .social-buttons {

        grid-template-columns: 1fr;
    }


    .auth-header h2 {

        font-size: 27px;
    }

}

