/* 
 * LIBRAS - Design System Centralizado (Acesso)
 * Baseado no módulo de Login (V5)
 */

:root {
    --primary-color: #4b6cb7;
    --secondary-color: #182848;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-success: #00b894;
    --text-danger: #d63031;
    --text-warning: #e17055;
    --bg-light: #f8f9fa;
    --border-color: #f1f2f6;
}

/* Base */
body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: #fff;
    color: var(--text-main);
}

a {
    color: #4b6cb7;
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Layout Containers */
.access-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.hero-section {
    flex: 1.2;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: #fff;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hero-section p {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 500px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
}

.form-section {
    flex: 0.8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow-y: auto;
}

.access-card {
    width: 100%;
    max-width: 450px;
}

/* Brand */
.brand-logo {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none !important;
}

.brand-logo i {
    margin-right: 15px;
    font-size: 2.2rem;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(127, 127, 213, 0.15);
    background-color: #fff;
}

/* Buttons */
.btn-access {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem;
    border-radius: 0.8rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 127, 213, 0.4);
    color: #fff;
}

.btn-logout {
    background: linear-gradient(45deg, #ff7675, #d63031);
    color: white !important;
}

.btn-logout:hover {
    box-shadow: 0 8px 20px rgba(214, 48, 49, 0.3);
}

.btn-save {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white !important;
}

.btn-cancel {
    background-color: var(--bg-light);
    color: var(--text-muted);
    border: none;
    padding: 1rem;
    border-radius: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: #eee;
    color: var(--text-main);
}

/* Alerts and Status */
.status-alert {
    padding: 1rem;
    border-radius: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.status-sucesso {
    background-color: #d1f7e1;
    color: #0f5132;
    border-left: 5px solid #198754;
}

.status-erro {
    background-color: #f8d7da;
    color: #842029;
    border-left: 5px solid #dc3545;
}

.status-aviso {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

/* Password Utilities */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #b2bec3;
}

.strength-bar {
    height: 5px;
    border-radius: 10px;
}

/* Components */
.profile-img-confirm {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed #dfe6e9;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    background: #fdfdfd;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
}

/* Toasts Notificações */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    border-left: 6px solid var(--primary-color);
    animation: slideInRight 0.3s ease-out forwards;
    cursor: pointer;
}

.custom-toast.error {
    border-left-color: var(--text-danger);
}

.custom-toast.success {
    border-left-color: var(--text-success);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .access-container {
        overflow: auto;
    }

    .hero-section {
        display: none;
    }

    .form-section {
        flex: 1;
        padding: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Animations */
/* Typography Utilities */
.small {
    font-size: 1rem !important;
    /* Aumentado de 0.875rem para 1rem para melhor leitura */
}

.text-muted {
    color: #57606f !important;
    /* Slightly darker than default muted for better contrast */
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Decorativo */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

/* Invisibility Utilities */
.success-box,
.upload-demo,
.btn-save {
    display: none;
}