/* ===========================================================
   login.css — Tema Blue Harmony UX
   Versão refinada com contraste e identidade visual aprimorados
=========================================================== */

/* ====== RESET ESTRUTURAL ====== */
.form-side button {
    all: unset !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    margin: 1rem 0 0 0 !important;
    padding: 0.9rem !important;
    border-radius: 12px !important;
    cursor: pointer !important;

    background: linear-gradient(135deg, #04C4D9, #0578A6) !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 18px rgba(4, 196, 217, 0.4);
}

.form-side button:hover {
    background: linear-gradient(135deg, #05d6e9, #04A5B2) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(4, 196, 217, 0.5);
}

/* ====== LIMPEZA E ESCONDER ELEMENTOS STREAMLIT/DJANGO ====== */
h1 a, h2 a, h3 a, h4 a {
    display: none !important;
    pointer-events: none !important;
}

[data-testid="collapsedControl"],
#MainMenu, header, footer,
[data-testid="stSidebar"],
.css-1rs6os, .css-1lcbmhc, .css-eczf16 {
    display: none !important;
}

.block-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* ====== FUNDO GERAL ====== */
.stApp {
    background: linear-gradient(135deg, #024873, #0578A6);
    font-family: 'Segoe UI', sans-serif;
    color: #EAFBFF;
}

/* ====== CONTAINER CENTRAL ====== */
.login-container {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* ====== CAIXA PRINCIPAL ====== */
.login-box {
    display: flex;
    width: 850px;
    height: 500px;
    background: linear-gradient(160deg, #035d87, #024873);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(167, 228, 242, 0.25);
}

/* ====== LADO ESQUERDO (FORMULÁRIO) ====== */
.form-side {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top left, #A7E4F2 0%, #0578A6 70%);
    color: #024873;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(3, 88, 120, 0.3);
}

/* ====== TÍTULO ====== */
.form-side h2 {
    color: #024873;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.2rem;
    width: 100%;
    text-shadow: 0 1px 3px rgba(2, 72, 115, 0.25);
}

/* ====== FORM ====== */
.form-side form {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ====== LABELS ====== */
.form-side label {
    color: #024873;
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ====== INPUTS ====== */
.form-side input {
    width: 100%;
    padding: 0.85rem !important;
    border-radius: 10px !important;
    border: 1px solid rgba(2, 72, 115, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #02334E !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 1px 3px rgba(2, 72, 115, 0.25);
}

.form-side input::placeholder {
    color: #0578A6;
    opacity: 0.8;
}

.form-side input:focus {
    outline: none;
    border-color: #04C4D9 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(4, 196, 217, 0.35);
    color: #012332 !important;
}

/* ====== LINK “ESQUECEU A SENHA?” ====== */
.form-side a {
    font-size: 0.9rem;
    color: #034E64;
    text-decoration: underline;
    margin-top: -0.3rem;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}
.form-side a:hover {
    color: #F2A341;
}

/* ====== LADO DIREITO (IMAGEM) ====== */
.image-side {
    flex: 1;
    background-image: url("https://images.unsplash.com/photo-1525182008055-f88b95ff7980?auto=format&fit=crop&w=900&q=80");
    background-size: cover;
    background-position: center;
    position: relative;
}

.image-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(2,72,115,0.5), rgba(5,120,166,0.3));
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 900px) {
    .login-box {
        flex-direction: column;
        height: auto;
        width: 95%;
    }

    .form-side {
        padding: 2rem;
    }

    .image-side {
        display: none;
    }

    .form-side h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .form-side button {
        font-size: 1rem !important;
    }
}
