/* Tipografia padrao KromaSystem (Inter) */
@font-face{font-family:"Inter";font-weight:400;font-style:normal;font-display:swap;src:url(../fonts/inter-Regular.woff) format("woff")}
@font-face{font-family:"Inter";font-weight:500;font-style:normal;font-display:swap;src:url(../fonts/inter-Medium.woff) format("woff")}
@font-face{font-family:"Inter";font-weight:600;font-style:normal;font-display:swap;src:url(../fonts/inter-SemiBold.woff) format("woff")}
@font-face{font-family:"Inter";font-weight:700;font-style:normal;font-display:swap;src:url(../fonts/inter-Bold.woff) format("woff")}
:root{--bs-body-font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}

:root {
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
}

body {
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Footer com a cor temática */
.brand-header, .brand-footer {
    background-color: var(--primary-color);
    color: #ffffff;
}

.brand-header {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
}

/* Card Flutuante Centralizado */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.card-login {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    width: 100%;
    max-width: 420px;
}

/* Estilização dos Inputs e Botão */
.input-group-text {
    background-color: #f8fafc;
    border-right: none;
}

.form-control {
    background-color: #f8fafc;
    border-left: none;
}

.form-control:focus {
    background-color: #ffffff;
    box-shadow: none;
    border-color: #cbd5e1;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.alert-info-custom {
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    color: #0369a1;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Toast de Erro Flutuante no Topo */
.alert-toast-top {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -20px);
    z-index: 9999;
    background-color: #ef4444;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animação de Entrada */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Estado Visível (Entrada Suave) */
.alert-toast-top.show {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* Efeito de hover elegante no link do rodapé */
.brand-footer a:hover {
    text-decoration: underline !important;
    color: #ffffff;
}

/* Garante que o rodapé não quebre o layout em celulares */
@media (max-width: 576px) {
    .brand-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Links do cabecalho: voltar para a landing e para o site da Kroma */
.header-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.92;
}
.header-links a:hover,
.header-links a:focus-visible {
    opacity: 1;
    text-decoration: underline;
}
