*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(115, 150, 70);
    font-family: 'Bree Serif', serif;
    padding: 16px;
}

.ctn-login {
    width: 100%;
    max-width: 450px;
    min-height: auto;
    background-color: bisque;
    border-radius: 15px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(60, 80, 35, 0.4);
}

.form-title,
.bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.form-login {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0 4px;
}

.form-title h1 {
    font-family: 'Crafty Girls', cursive;
    margin: 0;
    font-size: clamp(28px, 8vw, 40px);
    text-align: center;
    color: rgb(80, 110, 45);
}

.form-title p {
    margin: 6px 0 0;
    font-size: 14px;
    text-align: center;
    color: rgb(80, 110, 45);
}

.bottom {
    gap: 10px;
    margin-top: 4px;
}

.bottom a,
.btn-login {
    border-radius: 10px;
    background-color: rgb(115, 150, 70);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-family: 'Bree Serif', serif;
    font-size: 15px;
    cursor: pointer;
    border: none;
    text-align: center;
    width: 100%;
    max-width: 280px;
}

.bottom a:hover,
.btn-login:hover {
    background-color: rgb(95, 125, 55);
}

.link-secundario,
.link-voltar {
    background-color: transparent !important;
    color: rgb(80, 110, 45) !important;
    font-size: 13px !important;
    padding: 4px 0 !important;
    width: auto !important;
}

.link-secundario:hover,
.link-voltar:hover {
    color: rgb(115, 150, 70) !important;
    background-color: transparent !important;
}

.flash {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.flash-erro {
    background-color: rgba(140, 70, 60, 0.15);
    color: rgb(120, 55, 45);
}

.flash-sucesso {
    background-color: rgba(115, 150, 70, 0.2);
    color: rgb(60, 90, 30);
}

input {
    border-radius: 10px;
    width: 100%;
    max-width: 320px;
    height: 44px;
    margin-bottom: 16px;
    padding: 0 12px;
    border: 2px solid rgb(115, 150, 70);
    font-family: 'Bree Serif', serif;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.7);
}

input:focus {
    outline: none;
    border-color: rgb(80, 110, 45);
}

label {
    width: 100%;
    max-width: 320px;
    text-align: left;
    margin-bottom: 6px;
    font-size: 15px;
    color: rgb(80, 110, 45);
    font-weight: 600;
}

@media (min-width: 480px) {
    .ctn-login {
        padding: 28px 24px;
        min-height: 480px;
    }

    .form-title h1 {
        font-size: 40px;
    }

    .bottom a,
    .btn-login {
        width: auto;
        padding: 8px 16px;
        font-size: 14px;
    }

    input {
        height: 40px;
        margin-bottom: 20px;
    }
}
