/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #6D1514;
    min-height: 100vh;
    color: #333;
}

/* Layout de Login */
.login-container {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.login-wrapper {
    display: flex;
    background: white;
    width: 100%;
    height: 100vh;
}

.login-left {
    background: #6D1514;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-right {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    max-width: 450px;
    width: 100%;
    height: auto;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    color: #7f8c8d;
    margin-bottom: 40px;
    text-align: center;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8fafc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: rgba(109, 21, 20, 0.7);
    box-shadow: 0 0 0 3px rgba(109, 21, 20, 0.08), 0 2px 6px rgba(0, 0, 0, 0.08);
    background-color: white;
}

.form-input:hover {
    border-color: rgba(109, 21, 20, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.form-input::placeholder {
    color: #adb5bd;
}

.password-input {
    margin-bottom: 15px;
}

/* Estilos para página de recuperação de senha */
.back-to-login {
    text-align: center;
    margin-top: 25px;
}

.back-to-login a {
    color: #6D1514;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.back-to-login a:hover {
    color: #8B1E1F;
    text-decoration: underline;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 10px;    
    margin-bottom: 50px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #6D1514;
}

.checkbox-wrapper label {
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
}

.forgot-password {
    text-align: right;
    margin-bottom: 0;
}

.forgot-password a {
    color: #6D1514;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 600px) {
    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .forgot-password {
        text-align: left;
    }
    
    .btn-login {
        width: 160px;
        padding: 10px 20px;
        font-size: 15px;
    }
}

.btn-login {
    width: 80%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6D1514 0%, #8B1E1F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 0 auto;
    outline: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(109, 21, 20, 0.15);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 21, 20, 0.25);
    background: linear-gradient(135deg, #7A1716 0%, #9A2021 100%);
}

.btn-login:hover:not(:disabled)::before {
    left: 100%;
}

.btn-login:active:not(:disabled) {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(109, 21, 20, 0.2);
    transition: all 0.1s;
}

.btn-login:focus:not(:disabled) {
    box-shadow: 0 0 0 3px rgba(109, 21, 20, 0.2);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-link {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
    font-size: 14px;
}

.register-link a {
    color: #6D1514;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: 100vh;
    }
    
    .login-left {
        min-height: 40vh;
        padding: 30px;
    }
    
    .login-right {
        padding: 40px 30px;
        flex: 1;
    }
    
    .logo {
        max-width: 300px;
    }
    
    .login-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {    
    .login-right {
        padding: 30px 20px;
    }
    
    .logo {
        max-width: 250px;
    }
    
    .login-title {
        font-size: 24px;
    }
}

/* Layout Principal */
.main-layout {
    background: #f5f5f5;
    min-height: 100vh;
}

.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.main-content {
    flex: 1;
    padding: 30px;
    background: #f5f5f5;
    margin-left: 280px;
    margin-top: 70px;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-logo {
    display: flex;
    align-items: center;
}

.topbar-logo-img {
    height: 40px;
    width: auto;
}

.topbar-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Controle de Almoço */
.topbar-lunch-control {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.work-hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.hours-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.work-hours small {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.lunch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lunch-btn svg {
    width: 16px;
    height: 16px;
}

.lunch-pause {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.lunch-pause:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
}

.lunch-return {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.lunch-return:hover {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
}

.topbar-notifications {
    cursor: pointer;
}

.notification-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon {
    width: 24px;
    height: 24px;
    color: #333;
}

.notification-bell {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: none;
    background: #dc3545;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    z-index: 1;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

.topbar-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #6D1514;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #6D1514;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.sidebar-header {
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    overflow: hidden;
}

.sidebar-logo {
    width: 200px;
    height: 60px;
    object-fit: cover;
    object-position: center;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.sidebar-nav::-webkit-scrollbar {
    display: none; /* WebKit */
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 16px;
    font-weight: 500;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #6D1514;
    margin: 0 15px;
    border-radius: 8px;
}

.sidebar-item.active {
    background: white;
    color: #6D1514;
    margin: 0 15px;
    border-radius: 8px;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 10px 20px;
}

.user-info {
    color: white;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.user-email {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsividade do Layout Principal */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .topbar {
        left: 0;
        padding: 0 20px;
    }
    
    .topbar-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .topbar {
        left: 0;
        padding: 0 15px;
    }
    
    .topbar-title {
        font-size: 18px;
    }
    
    .topbar-logo-img {
        height: 30px;
    }
}
