/* ============================================
   login.css - EDSON CENTRO
   Login premium, elegante e responsivo
   ============================================ */

/* ----- Reset & base ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----- 1º HEADER (topo) ----- */
.top-header {
    background: #0a2b5e;
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 2px solid #ffc107;
}
.top-header a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}
.top-header a:hover {
    color: #ffc107;
    transform: translateY(-1px);
}
.top-header .btn-outline-light {
    border-width: 1px;
    transition: all 0.3s ease;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}
.top-header .btn-outline-light:hover {
    background: #ffc107;
    color: #0a2b5e;
    border-color: #ffc107;
    transform: scale(1.05);
}

/* ----- 2º HEADER (navbar) ----- */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}
.navbar-brand {
    font-weight: 700;
    color: #0a2b5e;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.2;
}
.navbar-brand img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}
.navbar-brand span {
    display: inline-block;
    vertical-align: middle;
}
.navbar-nav .nav-link {
    font-weight: 500;
    color: #1e293b;
    padding: 0.65rem 1rem;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 30px;
    position: relative;
}
.navbar-nav .nav-link i {
    margin-right: 6px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #0d6efd;
    border-radius: 10px;
}
.navbar-toggler {
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 30px;
}
.navbar-toggler:focus { box-shadow: none; }

/* ----- Área de login (split layout) ----- */
.login-wrapper {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 200px);
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #0a2b5e 0%, #0d6efd 50%, #0a58ca 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-left .brand-logo {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 1;
}
.login-left .brand-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}
.login-left h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.login-left p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    text-align: center;
    max-width: 360px;
    margin-top: 1rem;
    z-index: 1;
}
.login-left .features {
    margin-top: 2.5rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-left .feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}
.login-left .feature-item i {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #f8fafc;
    position: relative;
}

/* Card de login com glassmorphism sutil */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(10, 43, 94, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    animation: slideUp 0.6s ease-out;
}
.login-card .login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
}
.login-card .login-icon i {
    color: #fff;
    font-size: 1.6rem;
}
.login-card h3 {
    text-align: center;
    font-weight: 700;
    color: #0a2b5e;
    margin-bottom: 0.3rem;
    font-size: 1.5rem;
}
.login-card .subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Campos do formulário */
.login-card .form-group {
    margin-bottom: 1.3rem;
    position: relative;
}
.login-card .form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.login-card .form-label i {
    color: #0d6efd;
    font-size: 0.8rem;
}
.login-card .form-control {
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}
.login-card .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
    outline: none;
}
.login-card .form-control::placeholder {
    color: #cbd5e1;
}

/* Botão de entrada */
.login-card .btn-login {
    width: 100%;
    border-radius: 14px;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.25);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.login-card .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(13, 110, 253, 0.35);
}
.login-card .btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Alerta de erro */
.alert-login {
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    border: none;
    background: #fef2f2;
    color: #dc2626;
    animation: shake 0.5s ease;
}
.alert-login i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Link voltar */
.login-card .back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.login-card .back-link:hover {
    color: #0d6efd;
}

/* ----- Footer elegante ----- */
.footer {
    background: #0a1a2f !important;
    border-top: 5px solid #ffc107;
    color: #fff;
}
.footer a {
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer .hover-link {
    display: inline-block;
}
.footer .hover-link:hover {
    color: #ffc107 !important;
    transform: translateX(6px);
}
.footer .fab {
    transition: transform 0.3s ease, color 0.3s ease;
}
.footer .fab:hover {
    color: #ffc107 !important;
    transform: scale(1.15) rotate(-5deg);
}
.footer hr {
    opacity: 0.2;
}
.footer .text-white-50 {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Botão topo */
#btnTopo {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    border: none;
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4);
    transition: all 0.3s ease;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 999;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}
#btnTopo:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.5);
}

/* ----- Animações ----- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ----- Responsividade ----- */
@media (max-width: 992px) {
    .login-left { display: none; }
    .login-right {
        padding: 2rem 1.5rem;
        min-height: calc(100vh - 180px);
    }
    .login-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar-brand img { height: 36px; }
    .navbar-brand { font-size: 1.1rem; gap: 0.4rem; }
    .navbar-nav .nav-link { padding: 0.5rem 0.8rem; border-radius: 0; }
    .navbar-nav .nav-link.active::after { display: none; }
}

@media (max-width: 576px) {
    .top-header .container {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .top-header .contact-info a {
        display: inline-block;
        margin: 0 6px;
    }
    .login-card { padding: 1.8rem 1.2rem; border-radius: 20px; }
    .login-card h3 { font-size: 1.3rem; }
    .login-card .btn-login { font-size: 0.95rem; }
}

@media (max-width: 360px) {
    .navbar-brand { font-size: 0.95rem; gap: 0.3rem; }
    .navbar-brand img { height: 30px; }
    .login-card { padding: 1.5rem 1rem; }
    .top-header { font-size: 0.75rem; }
    .top-header .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
}