/* TUDO EM CAPS — exceto os que anulamos depois */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ==================== RESET ==================== */
:root{
    --primary:#044cac;
    --success:#11a811;
    --error:#d11;
    --card:#fff;
    --bg:#f0f0f0;
    --radius:10px;
}

label {
    text-transform: uppercase;
}
/* ==================== LAYOUT GERAL ==================== */
body{
    background:var(--bg);
    font-family:'Inter',system-ui,Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
    padding:18px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    min-height:100vh;
}

/* ==================== HEADER ==================== */
.header-top {
    width:100%;
    max-width:420px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:var(--card);
    padding:10px 14px;
    border-radius:12px;
    margin-bottom:12px;
    box-shadow:0 5px 14px rgba(0,0,0,0.06);
}

/* LOGOUT BTN */
.logout-btn {
    background: var(--error);
    color:white;
    padding:8px 16px;
    border-radius:var(--radius);
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    transition:background .2s ease, transform .15s ease;
}
.logout-btn:hover { background:#b40e0e; }
.logout-btn:active { transform:scale(0.95); }

/* ==================== CARD ==================== */
.card{
    width:100%;
    max-width:420px;
    background:var(--card);
    border-radius:16px;
    padding:18px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

h1{
    margin-bottom:12px;
    font-size:20px;
    text-align:center;
    letter-spacing:0.6px;
}

/* Label */
label.main{
    display:block;
    font-weight:600;
    margin-top:10px;
    margin-bottom:6px;
    font-size:13px;
}

/* ==================== INPUTS ==================== */
.input_dados, select, button {
    width:100%;
    font-size:16px;
    padding:12px 14px;
    border-radius:var(--radius);
    border:2px solid #ccc;
    outline:none;
    transition:box-shadow .18s ease, border-color .18s ease;

}

/* email normal */
input[type="email"], .user-name {
    text-transform:none !important;
}
/* senha normal */
input[type="password"], .user-name {
    text-transform:none !important;
}

/* focus */
.input_dados:focus, select:focus {
    border-color:var(--primary);
    box-shadow:0 0 8px rgba(4,76,172,0.18);
}

/* multi select */
select[multiple] {
    height:160px;
}

/* helper */
.helper {
    font-size:13px;
    color:#555;
    margin-top:8px;
    min-height:18px;
}

#msg_senha {
    font-size:14px;
    margin-top:8px;
    min-height:20px;
    font-weight:600;
}

/* ==================== BOTÕES ==================== */
.btn-row{
    display:flex;
    gap:10px;
    margin-top:14px;
}

.btn {
    flex:1;
    padding:14px;
    border-radius:12px;
    border:none;
    font-weight:700;
    cursor:pointer;
    font-size:16px;
}

.btn-primary {
    background:var(--primary);
    color:white;
}

.btn-reset {
    background:brown;
    color:white;
}

.btn:disabled {
    opacity:0.45;
    cursor:not-allowed;
}

/* ==================== RETORNO SERVIDOR ==================== */
#retorno {
    margin-top:12px;
    font-family:monospace;
    font-size:13px;
    white-space:pre-wrap;
    word-break:break-word;
    max-height:180px;
    overflow:auto;
    background:#fafafa;
    padding:8px;
    border-radius:8px;
    border:1px solid #eee;
}

/* ==================== MOBILE ==================== */
@media (max-width:360px){
    .card{ padding:14px; }
    h1{ font-size:16px; }
    .input_dados, select { font-size:15px; padding:12px; }
    .btn { padding:12px; font-size:15px; }
}
