/* =========================================================
   LOGIN - TUGO APP
========================================================= */

* {
    box-sizing: border-box;
}

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

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


/* =========================================================
   PÁGINA
========================================================= */

.login-page {
    position: relative;

    min-height: 100vh;

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

    padding: 32px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(40, 120, 75, 0.22),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(139, 35, 47, 0.18),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #eef5f0 0%,
            #f7f3f1 48%,
            #f3ecec 100%
        );
}


/* =========================================================
   ELEMENTOS DECORATIVOS
========================================================= */

.login-background-shape {
    position: absolute;

    border-radius: 50%;

    filter: blur(3px);

    pointer-events: none;
}

.login-background-shape-1 {
    width: 360px;
    height: 360px;

    top: -150px;
    left: -120px;

    background: rgba(33, 105, 67, 0.11);
}

.login-background-shape-2 {
    width: 440px;
    height: 440px;

    right: -180px;
    bottom: -200px;

    background: rgba(139, 34, 48, 0.09);
}


/* =========================================================
   CARD
========================================================= */

.login-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 440px;

    padding: 42px 38px 30px;

    border: 1px solid rgba(255, 255, 255, 0.75);

    border-radius: 28px;

    background: rgba(255, 255, 255, 0.85);

    box-shadow:
        0 30px 80px rgba(23, 40, 30, 0.12),
        0 8px 24px rgba(23, 40, 30, 0.06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   MARCA
========================================================= */

.login-brand {
    text-align: center;

    margin-bottom: 34px;
}

.login-logo-wrapper {
    width: 112px;
    height: 112px;

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

    margin: 0 auto 20px;

    padding: 10px;

    border-radius: 26px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(24, 61, 40, 0.11),
        inset 0 0 0 1px rgba(30, 90, 58, 0.06);
}

.login-logo {
    display: block;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

.login-app-name {
    display: inline-flex;

    padding: 6px 12px;

    margin-bottom: 14px;

    border-radius: 999px;

    background: rgba(38, 105, 68, 0.09);

    color: #256645;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.login-brand h1 {
    margin: 0 0 8px;

    color: #18251e;

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

    letter-spacing: -0.8px;
}

.login-brand p {
    max-width: 310px;

    margin: 0 auto;

    color: #707973;

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


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

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #37463d;

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

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;

    top: 50%;
    left: 16px;

    transform: translateY(-50%);

    width: 19px;
    height: 19px;

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

    color: #79827d;

    pointer-events: none;
}

.input-icon svg {
    width: 18px;
    height: 18px;

    fill: currentColor;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
    width: 100%;

    height: 54px;

    padding: 0 16px 0 48px;

    border: 1px solid #dfe5e1;

    border-radius: 14px;

    outline: none;

    background: rgba(249, 251, 250, 0.9);

    color: #202a24;

    font-size: 15px;

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

.login-form input::placeholder {
    color: #a2aaa5;
}

.login-form input:focus {
    border-color: #397a57;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(45, 118, 78, 0.09);
}


/* =========================================================
   ERROS
========================================================= */

.form-errors {
    margin-bottom: 20px;

    padding: 13px 15px;

    border: 1px solid rgba(164, 45, 55, 0.16);

    border-radius: 12px;

    background: rgba(164, 45, 55, 0.07);

    color: #9a3039;

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


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

.login-button {
    width: 100%;
    height: 56px;

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

    margin-top: 26px;

    border: 0;

    border-radius: 15px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #276b49 0%,
            #245e42 100%
        );

    color: #ffffff;

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

    box-shadow:
        0 12px 26px rgba(35, 97, 66, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.login-button svg {
    width: 19px;
    height: 19px;

    fill: currentColor;

    transition: transform 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 30px rgba(35, 97, 66, 0.26);

    filter: brightness(1.03);
}

.login-button:hover svg {
    transform: translateX(3px);
}

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


/* =========================================================
   RODAPÉ
========================================================= */

.login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;

    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid rgba(45, 72, 56, 0.08);

    text-align: center;
}

.login-footer span {
    color: #476052;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.login-footer small {
    color: #929a95;

    font-size: 11px;
}


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

@media (max-width: 600px) {

    .login-page {
        align-items: center;

        padding: 20px 16px;
    }

    .login-card {
        max-width: 100%;

        padding: 34px 24px 26px;

        border-radius: 24px;
    }

    .login-logo-wrapper {
        width: 96px;
        height: 96px;

        border-radius: 22px;
    }

    .login-brand {
        margin-bottom: 28px;
    }

    .login-brand h1 {
        font-size: 27px;
    }

    .login-brand p {
        font-size: 13px;
    }

    .login-form input[type="text"],
    .login-form input[type="password"],
    .login-form input[type="email"] {
        height: 52px;
    }

    .login-button {
        height: 54px;
    }
}


/* =========================================================
   TELAS MUITO PEQUENAS
========================================================= */

@media (max-width: 360px) {

    .login-card {
        padding-left: 19px;
        padding-right: 19px;
    }

    .login-logo-wrapper {
        width: 86px;
        height: 86px;
    }

    .login-brand h1 {
        font-size: 24px;
    }

}