
:root {
    --primary: #0284c7;
    /* Seu Azul */
    --secondary: #f97316;
    /* Seu Laranja */
    --bg-dark: #0f172a;
    /* Seu Slate Dark */
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --radius: 3px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    /* Background com detalhe sutil em azul */
    background-image: radial-gradient(rgba(2, 132, 199, 0.1) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
}

/* Container Compacto e Simétrico */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 760px;
    min-height: 420px;
    background: #ffffff;
    /* Sombras Profundas Profissionais */
    box-shadow:
        0 10px 1px -5px rgba(15, 23, 42, 0.05),
        0 25px 50px -12px rgba(15, 23, 42, 0.25);
    border-radius: var(--radius);
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estilo do Banner de Carregamento */
.loader-banner {
    position: fixed;
    top: -100px;
    /* Escondido acima */
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: white;
    padding: 12px 25px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--primary);
}

.loader-banner.active {
    top: 0;
    /* Desce para a tela */
}

.loader-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.loader-content i {
    font-size: 1.2rem;
    color: var(--primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lateral Esquerda (Fundo Dark do Sistema) */
.sidebar-logo {
    flex: 1;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: white;
    border-right: 4px solid var(--primary);
    position: relative;
}

/* Animação Floating Discreta */
.sidebar-logo img {
    width: 90px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(2, 132, 199, 0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.sidebar-logo h1 {
    font-size: 1.5rem;
    letter-spacing: 4px;
    font-weight: 800;
    color: #fff;
}

.sidebar-logo p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lateral Direita (Formulário Limpo) */
.form-content {
    flex: 1;
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-content h2 {
    font-size: 1.15rem;
    color: var(--bg-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: var(--bg-dark);
    letter-spacing: 0.5px;
}

.input-box {
    position: relative;
}

.input-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.input-box input {
    width: 100%;
    padding: 10px 12px 10px 35px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--bg-dark);
    transition: all 0.2s;
    background: #fcfcfc;
}

.input-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Botões com suas cores */
.btn-login {
    width: 100%;
    padding: 11px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 5px;
}

.btn-login:hover {
    background: #0369a1;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-create {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-create:hover {
    background: var(--secondary);
    color: white;
}

.forgot-pass {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Divisor Profissional */
.divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--border-color);
}

.divider span {
    position: relative;
    background: #fff;
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 800;
}

.error-msg {
    margin-top: 15px;
    padding: 8px 12px;
    background: #fff1f2;
    color: #be123c;
    border-left: 3px solid #be123c;
    font-size: 0.75rem;
    display: none;
    font-weight: 600;
}

/* Estilo do Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.profile-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: 0.2s;
    background: #f8fafc;
}

.profile-btn:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 700px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 340px;
    }

    .sidebar-logo {
        border-right: none;
        border-bottom: 4px solid var(--primary);
    }

    .form-content {
        padding: 30px;
    }
}
