@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('app-cursors.css');

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--steel-gray);
    background-image: linear-gradient(to bottom, var(--superficie-3) 0%, var(--fundo-app) 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

article {
    background: var(--superficie);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 5px 20px color-mix(in srgb, var(--marca-superficie) 15%, transparent);
    width: 100%;
    max-width: 400px;
    text-align: center;
    /* Linha de assinatura da marca no topo */
    border-top: 5px solid var(--brand-orange);
}

h1 {
    margin-bottom: 30px;
    color: var(--marca-texto);
    font-size: 1.8em;
    font-weight: 700;
    text-transform: uppercase;
}

form {
    display: flex;
    flex-direction: column;
}

.login-title::before {
    content: "";
    display: block;
    width: 100%;
    height: 60px;
    /* Ajuste a altura conforme a proporção da imagem */
    background-image: url('/marca/logo_login');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 50px;
}

label {
    text-align: left;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--texto-forte);
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    background-color: var(--superficie);
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--brand-orange);
    /* Foco na cor de destaque */
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--destaque) 20%, transparent);
}

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

.password-container {
    position: relative;
}

.password-container input {
    margin-bottom: 0;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

button {
    padding: 14px;
    background: var(--primary-blue);
    color: var(--texto-contraste);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

button:hover {
    background: var(--brand-orange);
    transform: translateY(-2px);
}

.links {
    margin-top: 25px;
    border-top: 1px solid var(--borda);
    padding-top: 20px;
}

.links a {
    display: block;
    margin: 8px 0;
    color: var(--marca-texto);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
    color: var(--brand-orange);
}

@media (max-width: 480px) {
    article {
        padding: 25px;
        margin: 16px;
        width: calc(100% - 32px);
        max-width: 100%;
    }

    body {
        justify-content: flex-start;
        padding-top: 1.5rem;
        height: auto;
        min-height: 100vh;
    }
}

@media (max-width: 360px) {
    article {
        padding: 20px 16px;
        margin: 12px;
        width: calc(100% - 24px);
        border-radius: 8px;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 10px;
        font-size: 15px;
    }

    button {
        padding: 12px;
        font-size: 15px;
    }
}

/* Backgrounds Dinâmicos */
body.bg-noite {
    background-image: url('../images/obra-noite.jpg');
}

body.bg-alvorada {
    background-image: url('../images/obra-alvorada.jpg');
}

body.bg-manha {
    background-image: url('../images/obra-manha.jpg');
}

body.bg-tarde {
    background-image: url('../images/obra-tarde.jpg');
}