/* Tela de entrada (reservas/index.asp) e telas de redefinição de senha
   (redefinir_senha.asp e redefinir_senha_enviar.asp). */
/* ============================================ */
/* LOGIN — E-FLight                              */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    min-height: 100%;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    background-color: #0a0a1a;
    background-image: url('../imagens/bglogin.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Overlay escuro */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 10, 30, 0.45) 0%,
        rgba(5, 10, 30, 0.65) 50%,
        rgba(5, 10, 30, 0.85) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Container */
.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

/* Logo */
.login-logo {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 4px auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

/* Título */
.login-titulo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75em;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin: 8px 0 0 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Slogan */
.login-slogan {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 4px 0 8px 0;
    line-height: 1.4;
}

/* Form */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

/* Wrapper de cada campo */
.login-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 58px;
    background: rgba(15, 25, 50, 0.55);
    border: 1px solid rgba(120, 170, 255, 0.35);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.login-field:focus-within {
    border-color: rgba(120, 170, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(70, 130, 220, 0.15);
}

/* Ícone à esquerda */
.login-field-icon {
    flex: 0 0 56px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05em;
    padding-left: 8px;
    background: rgba(15, 25, 50, 0.55);
}

.login-field-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Input */
.login-field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1em;
    font-weight: 400;
    padding: 0 4px 0 0;
    margin: 0;
    letter-spacing: 0.2px;
}

.login-field input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
}

/* Botão de mostrar/ocultar senha */
.login-field-toggle {
    flex: 0 0 52px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 25, 50, 0.55);
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05em;
    transition: color 0.15s ease;
    padding: 0;
}

.login-field-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.login-field-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Autofill do Chrome/Edge */
.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus,
.login-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 25, 50, 0.55) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1em !important;
}

.login-field input:autofill {
    box-shadow: 0 0 0 1000px rgba(15, 25, 50, 0.55) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}

/* Mensagem de erro */
.login-erro {
    display: block;
    color: #ff6b6b;
    font-size: 0.85em;
    font-weight: 500;
    text-align: center;
    margin: 4px 0;
    min-height: 1.2em;
    letter-spacing: 0.2px;
}

/* Botão Entrar */
.login-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #3d8bfd 0%, #2b6ed4 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 6px 20px rgba(45, 110, 212, 0.35);
    margin-top: 4px;
}

.login-btn:hover {
    background: linear-gradient(180deg, #4d97ff 0%, #3276dc 100%);
    box-shadow: 0 8px 26px rgba(45, 110, 212, 0.5);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(45, 110, 212, 0.4);
}

.login-btn-arrow {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.login-btn:hover .login-btn-arrow {
    transform: translateX(4px);
}

/* Link "Esqueceu a senha?" */
.login-forgot {
    display: block;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-weight: 400;
    text-decoration: none;
    margin: 8px 0 0 0;
    padding: 8px;
    transition: color 0.15s ease;
    letter-spacing: 0.2px;
}

.login-forgot:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Mobile pequeno */
@media (max-width: 420px) {
    .login-titulo {
        font-size: 1.5em;
    }
    .login-logo {
        max-width: 220px;
    }
    .login-field,
    .login-btn {
        height: 54px;
    }
    .login-field-icon,
    .login-field-toggle {
        flex: 0 0 48px;
    }
}

/* Telas baixas (paisagem de celular) */
@media (max-height: 640px) {
    .login-wrap {
        gap: 14px;
        padding: 8px 0;
    }
    .login-logo {
        max-width: 200px;
    }
    .login-titulo {
        font-size: 1.35em;
    }
    .login-field,
    .login-btn {
        height: 50px;
    }
}

/* ---------- telas de redefinição de senha ---------- */
a.login-btn { text-decoration: none; }
.login-erro:empty { display: none; }
.login-ok {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 24px 20px;
    border-radius: 16px;
    background: rgba(15, 25, 50, 0.55);
    border: 1px solid rgba(76, 195, 160, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
}
.login-ok-ic {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 195, 160, 0.18);
    color: #4cc3a0;
}
.login-ok-ic svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-ok b { font-size: 1.1em; font-weight: 600; }
.login-ok span:last-child { font-size: 0.92em; font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.login-ok.login-aviso { border-color: rgba(242, 199, 92, 0.6); }
.login-aviso .login-ok-ic { background: rgba(242, 199, 92, 0.16); color: #f2c75c; }
