/* styles.css */
:root {
    --bg: #e3f2fd;
    --card: #ffffff;
    --text: #1f2937;
    --accent: #1976d2;
    --muted: #6b7280;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    font-family: Inter, system-ui, sans-serif;
    background: #EEF1F4;
    color: var(--text);
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
}

.image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo {
    width: clamp(150px, 20vw, 220px);
    height: auto;
    margin-right: 15px;
    margin-bottom: 25px;
}

.left {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    padding: 48px;
}

.news {
    display: inline-flex;
    max-width: 500px;
    max-height: 70vh;
    width: fit-content;
    height: fit-content;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
}

.news img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

.right {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 48px;
}

.formulario {
    width: min(100%, 430px);
    height: min(70vh, 760px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-container {
    width: 100%;

    background: var(--card);
    border-radius: 24px;
    box-shadow: 0 15px 80px rgba(0, 0, 0, 0.25);

    padding: clamp(25px, 3.8vh, 35px);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-container h1 {
    margin: 0 0 clamp(10px, 3vh, 20px);
    text-align: left;
    color: #050822d2;
}

.form-container form {
    display: grid;
    gap: clamp(6px, 1.2vh, 14px);
}

.form-container label {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
}

.form-container input {
    width: 100%;
    padding: clamp(10px, 1.6vh, 15px);
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--text);
    background: #f8fafc;
}

.form-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.12);
}

.btn-acessar {
    display: block;
    width: 100%;
    padding: clamp(10px, 1.6vh, 15px);
    margin-top: clamp(12px, 2vh, 28px);
    border: none;
    border-radius: 12px;
    background: #0027C7;
    color: white;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-acessar:hover {
    transform: translateY(-1px);
    background: #0021a5;
}

.btn-acessar:active {
    transform: translateY(0);
}

.error-container {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msg-erro {
    margin: 0;
    width: fit-content;
    padding: 5px 13px;
    background: #ffdfdf;
    border-radius: 99px;
    color: #b91c1c;
    font-size: 0.88rem;
    font-weight: 500;
}

.forgot-password {
    display: block;
    margin-left: auto;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    white-space: nowrap;
}

.forgot-password:hover {
    text-decoration: underline;
}

::placeholder {
    color: var(--muted);
}

@media (max-width: 1100px) {
    body {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .left {
        width: 100%;
        padding-top: 70px;
        padding-bottom: 70px;

        .news {
            height: 100%;
        }
    }
    .right {
        padding: 32px;
        padding-bottom: 100px;
    }
}

@media (max-width: 768px) {
    body {
        gap: 0px;
    }

    .left {
        display: none;
    }

    .right {
        padding: 20px;
        justify-content: flex-start;
    }

    .form-container {
        padding: 25px;
        border-radius: 16px;
    }
}
