/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: #d1d5db;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Top-bar */
.top-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 50px;
    background-color: rgba(31, 41, 55, 0.9); backdrop-filter: blur(10px);
    display: flex; align-items: center; padding: 0 1rem; z-index: 1000;
    max-width: 100vw; flex-wrap: wrap;
}
.top-link-center { flex-grow: 1; text-align: center; }
.top-links { display: flex; align-items: center; gap: 1rem; }
.top-link {
    color: #ffffff; text-decoration: none; font-size: 0.95rem;
    font-weight: 500; white-space: nowrap; transition: color 0.2s;
}
.top-link:hover { color: #9ca3af; }

/* Container principal */
.login-container {
    display: flex; width: 100vw; min-height: 100vh;
    background-color: #ffffff; overflow-x: hidden; overflow-y: auto;
}

/* Seção de login */
.login-section {
    width: 30%; background-color: #ffffff; color: #1f2937;
    padding: 2rem 2.5rem; display: flex; flex-direction: column;
    align-items: flex-start; min-height: 100vh;
}
.logo { width: 100%; max-width: 150px; margin: 1rem 0; }
.welcome-text { text-align: left; margin-bottom: 1.5rem; }
.welcome-title { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin-bottom: 1.5rem; }
.welcome-description, .welcome-action { font-size: 1rem; line-height: 1.5; color: #1f2937; }

/* Notificações */
.notification {
    position: fixed; top: 1rem; right: 1rem; background-color: #34d399;
    color: #ffffff; padding: 0.75rem 1rem; border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); z-index: 2000; max-width: 300px;
    font-size: 0.9rem; font-weight: 400;
}
.notification.error { background-color: #f87171; }
.notification-content { display: flex; justify-content: space-between; align-items: center; }
.notification-close {
    background-color: rgba(255,255,255,0.2); color: #ffffff; border: none;
    border-radius: 50%; width: 20px; height: 20px; display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    transition: background-color 0.3s ease;
}
.notification-close:hover { background-color: rgba(255,255,255,0.3); }
.notification-close i { font-size: 0.7rem; }
.progress-bar {
    height: 2px; background-color: rgba(255,255,255,0.3);
    animation: progress 5s linear forwards;
}
@keyframes progress { from { width: 100%; } to { width: 0; } }

/* Formulário */
.role-selection { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.role-selection label { display: flex; align-items: center; font-size: 0.95rem; cursor: pointer; color: #1f2937; font-weight: 400; }
.role-selection input[type="radio"] { margin-right: 0.5rem; }
.login-section form { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }
.login-section label { font-size: 1rem; font-weight: 500; color: #1f2937; transition: all 0.2s ease; }
.login-section input[type="text"], .login-section input[type="password"] {
    width: 100%; padding: 0.75rem; border-radius: 6px; background-color: #f3f4f6;
    border: 1px solid #d1d5db; color: #1f2937; font-size: 1rem; outline: none;
    font-weight: 400; transition: all 0.2s ease;
}
.login-section input:focus { border-color: #9ca3af; box-shadow: 0 0 0 3px rgba(156,163,175,0.4); }
.login-section button {
    width: 100%; background-color: #9ca3af; color: #000000; padding: 0.75rem;
    border: none; border-radius: 6px; cursor: pointer; font-weight: 500;
    font-size: 1rem; transition: background-color 0.2s;
}
.login-section button:hover { background-color: #6b7280; }

/* Carrossel */
.carousel-section {
    width: 70%; position: relative; overflow: hidden;
}
.carousel {
    width: 100%; height: 100%; position: relative;
}
.carousel-item {
    width: 100%; height: 100%; object-fit: cover; position: absolute;
    top: 0; left: 0; transform: translateX(100%); transition: transform 0.5s ease-in-out;
}
.carousel-item.active { transform: translateX(0); }

/* === NOVOS CONTROLES INFERIORES === */
.carousel-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.45);
    padding: 12px 18px;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.ctrl-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.25s ease;
}
.ctrl-btn:hover {
    transform: scale(1.25);
    opacity: 0.9;
}
.carousel-dots {
    display: flex;
    gap: 8px;
}
.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: #ffffff;
    transform: scale(1.35);
}
.dot:hover {
    background: #ffffff;
    transform: scale(1.2);
}

/* Remove os botões antigos */
.carousel-button { display: none !important; }

/* Modal */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); justify-content: center; align-items: center; z-index: 1000;
}
.modal-content {
    background-color: #ffffff; padding: 2rem; border-radius: 6px;
    max-width: 400px; width: 90%; box-shadow: 0 6px 12px rgba(0,0,0,0.15); text-align: center;
}
.modal-content h3 { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin-bottom: 1rem; }
.modal-description { font-size: 0.95rem; line-height: 1.5; color: #1f2937; font-weight: 400; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-size: 1rem; font-weight: 500; color: #1f2937; margin-bottom: 0.5rem; }
.form-group input {
    width: 100%; padding: 0.75rem; border-radius: 6px; background-color: #f3f4f6;
    border: 1px solid #d1d5db; color: #1f2937; font-size: 1rem; outline: none;
    font-weight: 400; transition: all 0.2s ease;
}
.form-group input:focus { border-color: #9ca3af; box-shadow: 0 0 0 3px rgba(156,163,175,0.4); }
.modal-actions { display: flex; justify-content: center; gap: 1rem; }
.btn {
    padding: 0.75rem 1.5rem; border: none; border-radius: 6px;
    cursor: pointer; font-size: 1rem; font-weight: 500; transition: background-color 0.2s;
}
.save-btn { background-color: #9ca3af; color: #000000; }
.save-btn:hover { background-color: #6b7280; }
.cancel-btn { background-color: #f87171; color: #ffffff; }
.cancel-btn:hover { background-color: #dc2626; }
.forgot-pin { margin-top: 1rem; text-align: center; }
.forgot-pin a { color: #9ca3af; text-decoration: none; font-size: 0.9rem; font-weight: 400; transition: color 0.2s; }
.forgot-pin a:hover { color: #6b7280; }

/* Responsividade */
@media (max-width: 1024px) {
    .login-container { flex-direction: column; }
    .login-section, .carousel-section { width: 100%; height: auto; min-height: 50vh; }
    .login-section { padding: 1.5rem 2rem; padding-bottom: 3rem; }
    .logo { max-width: 120px; margin-top: 0.75rem; }
    .top-bar { height: auto; padding: 0.5rem 1rem; flex-direction: column; align-items: center; }
    .top-link-center { margin: 0.5rem 0; width: 100%; text-align: center; }
    .top-links { gap: 0.75rem; margin: 0.5rem 0; }
    .role-selection { flex-direction: column; gap: 0.75rem; }
}
@media (max-width: 768px) {
    .login-section { padding: 1rem 1.5rem; padding-bottom: 2.5rem; }
    .logo { max-width: 100px; }
    .carousel-controls {
        bottom: 16px;
        right: 16px;
        padding: 10px 14px;
        gap: 10px;
    }
    .ctrl-btn { font-size: 1.2rem; }
    .dot { width: 8px; height: 8px; }
    .modal-content { padding: 1.5rem; }
}
