﻿
/* ESTILIZAÇÃO DA TELA DE LOGIN*/

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-dark: #1a5c3a;
    --green-mid: #226644;
    --green-light: #2d8a5e;
    --green-subtle: #e8f2ec;
    --green: #005240;
    --gold: #c8a84b;
    --white: #ffffff;
    --gray-100: #f7f9f8;
    --gray-300: #c8d4cc;
    --gray-500: #6b8077;
    --gray-700: #3a4f46;
    --text: #1c2e27;
    --shadow: 0 24px 64px rgba(26,92,58,0.18), 0 4px 16px rgba(26,92,58,0.10);
}

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: #1a5c3a;
    overflow: hidden;
    position: relative;
}

canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    padding: 48px 40px 40px;
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.logo-wrap img {
    height: 72px;
    object-fit: contain;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--text);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.card-sub {
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 36px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--gray-100);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

input:focus {
    border-color: var(--green-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(45,138,94,0.12);
}

input::placeholder {
    color: var(--gray-300);
}

.btn {
    width: 100%;
    padding: 13px;
    background: var(--green-dark);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26,92,58,0.25);
}

.btn:active {
    transform: translateY(0);
}

.divider {
    height: 1px;
    background: var(--gray-300);
    margin: 28px 0 20px;
    opacity: 0.5;
}

.footer-text {
    text-align: center;
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 300;
}

.footer-text span {
    color: var(--green);
    font-weight: 500;
}

.footer-text span2 {
    color: var(--gold);
    font-weight: 500;
}

/* Validação Bootstrap-like */
.field-validation-error {
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.validation-summary-errors ul {
    list-style: none;
    background: #fdf0ef;
    border: 1px solid #e8b4b0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #c0392b;
}
