/* Reset simples */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #10142a 0%, #1a226b 100%);
    display: grid;
    place-items: center;
    color: #e7e9f4;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #0f1228;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand .logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #5560d1;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.brand h1 {
    font-size: 18px;
    margin: 0;
    letter-spacing: .3px;
}

.subtitle {
    color: #aab0d4;
    font-size: 13px;
    margin: 0 0 18px 0;
}

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

label {
    display: block;
    font-size: 13px;
    color: #cfd3f1;
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #2a2f55;
    background: #0b0e23;
    color: #e7e9f4;
}

input::placeholder {
    color: #8187b1;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

button[type="submit"] {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    background: #5560d1;
    color: white;
    transition: transform .04s ease, box-shadow .2s ease;
}

button[type="submit"]:active {
    transform: translateY(1px);
}

.error {
    background: #2a1132;
    border: 1px solid #a43aa4;
    color: #ffd5ff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.success {
    background: #0f2a18;
    border: 1px solid #1fa05d;
    color: #c9ffdf;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 64px;
    /* controla o tamanho */
    width: auto;
    /* mantém a proporção */
    max-width: 100%;
    /* não deixa estourar */
    display: block;
    object-fit: contain;
}

.logo-full {
    height: 48px;
    /* versão com texto geralmente fica melhor um pouco menor */
}

/* neutraliza o antigo quadrado com “E” */
.logo {
    all: unset;
}