* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 10% 30%, #0B1E33, #07121F);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 20px;
}

/* Container principal centralizado - CORREÇÃO CRÍTICA */
.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* elementos de fundo criativos reposicionados para não afetar o layout */
body::before {
    content: "✎";
    font-size: 320px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.02);
    position: fixed;
    bottom: -50px;
    right: -80px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "⚡";
    font-size: 280px;
    color: rgba(100, 210, 255, 0.03);
    position: fixed;
    top: 10%;
    left: -70px;
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 0;
}

/* card principal com bordas e brilho suave - CENTRALIZADO */
.login-card {
    border-radius: 48px;
    background: rgba(18, 28, 40, 0.75);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    /* Centralização horizontal */
}

/* Ajuste para tablets e dispositivos médios */
@media (min-width: 768px) and (max-width: 1024px) {
    .login-card {
        max-width: 550px;
        margin: 0 auto;
    }

    .main-container {
        padding: 0 20px;
    }
}

/* Ajuste para mobile */
@media (max-width: 767px) {
    .login-card {
        max-width: 95%;
        margin: 0 auto;
    }

    .login-body {
        padding: 1.8rem 1.5rem !important;
    }
}

.login-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* cabeçalho único com identidade escolar e "portão de acesso" */
.login-header {
    background: linear-gradient(112deg, #5D9CEC 0%, #3182CE 45%, #1E3A8A 100%);
    padding: 2rem 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::after {
    content: "✦";
    font-size: 140px;
    position: absolute;
    bottom: -30px;
    right: -20px;
    opacity: 0.2;
    color: white;
    font-family: monospace;
    pointer-events: none;
    transform: rotate(10deg);
}

.login-header i.fa-school {
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
    transition: all 0.2s;
}

.badge-aceso {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

/* corpo do login minimal mas com detalhes */
.login-body {
    padding: 2.2rem 2rem 2.2rem 2rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #B9C8FF;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control {
    background-color: #0F1825;
    border: 1px solid #2A3A55;
    border-radius: 20px;
    padding: 12px 18px;
    font-size: 1rem;
    color: #F0F3FA;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: #121C2C;
    border-color: #FFB347;
    box-shadow: 0 0 0 4px rgba(255, 180, 71, 0.25);
    color: white;
    outline: none;
}

.form-control::placeholder {
    color: #556a8b;
    font-weight: 400;
    font-size: 0.9rem;
}

/* botão único com animação e identidade "Entrar Agora" */
.btn-login {
    background: linear-gradient(95deg, #FFB347 0%, #FF6B6B 100%);
    border: none;
    padding: 14px 16px;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 40px;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 10px 18px -8px rgba(255, 107, 107, 0.4);
    color: #0B1E2E;
}

.btn-login:hover {
    transform: scale(1.02) translateY(-3px);
    background: linear-gradient(95deg, #ffa42b, #ff5454);
    box-shadow: 0 18px 26px -10px rgba(255, 90, 90, 0.6);
    color: #000;
}

.btn-login i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* divisor com personalidade */
.custom-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #5E779B;
    font-size: 0.7rem;
    font-weight: 500;
    gap: 12px;
}

.custom-divider::before,
.custom-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3E506E, transparent);
}

.credencial-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 28px;
    padding: 12px 16px;
    text-align: center;
    border: 1px dashed rgba(255, 180, 71, 0.3);
    transition: 0.2s;
}

.credencial-box small {
    font-size: 0.7rem;
    color: #92abcf;
    letter-spacing: 0.4px;
}

.credencial-box .demo-creds {
    font-family: monospace;
    font-size: 0.8rem;
    background: #07121F;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 40px;
    margin-top: 6px;
    color: #FFB347;
    font-weight: 600;
}

/* alert customizado */
.alert-custom {
    background: rgba(220, 53, 69, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid #ff6b6b;
    color: #FFD6D6;
    border-radius: 50px;
    font-weight: 500;
    padding: 12px 20px;
}

/* Correção do grid do Bootstrap - centralização garantida */
.row {
    margin-right: 0;
    margin-left: 0;
}

.container {
    padding-right: 0;
    padding-left: 0;
}

/* Efeito de fade slide in */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-entrance {
    animation: fadeSlideIn 0.7s ease-out forwards;
}

/* Otimização para tablets em modo paisagem */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .login-card {
        max-width: 480px;
    }

    body {
        padding: 15px;
    }
}

