/* ==============================
   ESTILO GLOBAL
============================== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;

    /* Fundo estilo DJI */
    background: linear-gradient(135deg, #0a1a33, #0d47a1);
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ==============================
   CONTAINER PADRÃO
============================== */
.container {
    background: #ffffff;
    padding: 35px;
    width: 450px;
    max-width: 95%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    text-align: center;

    /* Animação leve */
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   LOGO
============================== */
.logo {
    width: 300px;
    margin-bottom: 15px;
}

/* ==============================
   TÍTULOS
============================== */
h2 {
    margin-bottom: 20px;
    color: #0a1a33;
}

/* ==============================
   INPUTS
============================== */
input {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #b5b5b5;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background: #f7f7f7;
}

input:focus {
    outline: none;
    border-color: #0d47a1;
    background: #ffffff;
    box-shadow: 0 0 3px rgba(13, 71, 161, 0.5);
}

/* ==============================
   CAMPO SENHA COM ÍCONE
============================== */
.senha-box {
    position: relative;
}

.senha-box span {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
}

.senha-box span:hover {
    opacity: 1;
}

/* ==============================
   BOTÕES
============================== */
button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.2s;
}

button:hover {
    background: #0056d6;
}

button:disabled {
    background: #9bbcf5;
    cursor: not-allowed;
}

/* ==============================
   MENSAGENS (ERRO / SUCESSO)
============================== */
.msg {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.msg.erro {
    background: #ffd6d6;
    color: #8b0000;
}

.msg.sucesso {
    background: #d6ffe0;
    color: #006400;
}

/* ==============================
   LINKS GERAIS
============================== */
a {
    display: block;
    margin-top: 10px;
    color: #0056d6;
    text-decoration: none;
    text-align: center;
}

a:hover {
    text-decoration: underline;
}

/* ==============================
   LINK "ESQUECEU A SENHA"
============================== */
.link-esqueci {
    color: #0d6efd;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    font-weight: 500;
}

.link-esqueci:hover {
    text-decoration: underline;
    color: #0056d6;
}

/* ==============================
   LINK "VOLTAR / LOGIN"
============================== */
.link-voltar {
    color: #0d47a1;
    font-size: 14px;
    text-decoration: none;
}

.link-voltar:hover {
    text-decoration: underline;
}

.link-login {
    display: block;
    margin-top: 15px;
    text-align: center;
    color: #0d6efd;
    text-decoration: none;
    font-weight: bold;
}

.link-login:hover {
    text-decoration: underline;
}

/* ==============================
   FORM CHAVES (ADMIN)
============================== */
.form-chaves {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 350px;
}

.form-chaves input[type=text],
.form-chaves textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

/* ==============================
   LOGOUT
============================== */
.logout-link {
    color: #0d47a1 !important;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
}

.logout-link:hover {
    text-decoration: underline;
}

/* ==============================
   RESPONSIVO
============================== */
@media screen and (max-width: 600px) {
    .container {
        width: 95%;
        padding: 25px;
    }

    input,
    button {
        font-size: 14px;
        padding: 10px;
    }
}
