/* RESET + BASE */
* {
    box-sizing: border-box;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    height: 100%;
}

/* FUNDO GLOBAL — preparado para mobile moderno */
body {
    margin: 0;
    min-height: 100dvh;              /* resolve bug de vh em mobile */
    overflow-x: hidden;
    background: linear-gradient(135deg, #0b132b, #1c2541, #3a506b);
    display: flex;
}

/* FORMAS ORGÂNICAS */
.bg-shape {
    position: fixed;
    width: min(520px, 90vw);
    height: min(520px, 90vw);
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    background: #3b82f6;
    top: -180px;
    left: -180px;
}

.shape-2 {
    background: #38bdf8;
    bottom: -180px;
    right: -180px;
}

/* ÁREA PRINCIPAL */
.login-area {
    position: relative;
    z-index: 1;
    min-height: 100dvh;               /* mobile-safe */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 32px);
}

/* CAIXA DE LOGIN */
.login-box {
    width: 100%;
    max-width: 420px;
    background: rgba(10, 18, 35, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 36px);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* LOGO */
.logo {
    width: clamp(110px, 25vw, 140px);
    margin-bottom: 12px;
}

/* TÍTULO */
h1 {
    margin: 0;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 700;
    color: #e6f0ff;
    letter-spacing: 0.4px;
}

/* FRASE */
.tagline {
    margin: 10px 0 32px;
    font-size: clamp(13px, 3.5vw, 14px);
    color: #b9d6ff;
    line-height: 1.45;
}

/* INPUTS */
input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #e6f0ff;
    font-size: 14px;
}

input::placeholder {
    color: #9fbbe0;
}

input:focus {
    outline: 2px solid #3b82f6;
}

/* BOTÃO */
button {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #38bdf8);
    color: #0b132b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ERRO */
.error {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: #ff9ca3;
    min-height: 18px;
}

/* BOTÃO VOLTAR */
.btnVoltar {
    position: fixed;
    bottom: clamp(16px, 4vw, 24px);
    left: clamp(16px, 4vw, 24px);
    z-index: 1000;
}

/* TELAS MUITO PEQUENAS */
@media (max-width: 360px) {
    .login-box {
        border-radius: 18px;
    }

    button {
        padding: 14px;
        font-size: 14px;
    }
}

/* TELAS GRANDES / ULTRAWIDE */
@media (min-width: 1400px) {
    .bg-shape {
        filter: blur(180px);
        opacity: 0.5;
    }
}



